Author: kib
Date: Sun May 11 18:07:07 2014
New Revision: 265887
URL: http://svnweb.freebsd.org/changeset/base/265887

Log:
  Fix locking.  The dst_object must remain locked on the retry of the
  loop iteration.
  
  Reported and tested by:       pho
  Sponsored by: The FreeBSD Foundation
  MFC after:    6 days

Modified:
  head/sys/vm/vm_fault.c

Modified: head/sys/vm/vm_fault.c
==============================================================================
--- head/sys/vm/vm_fault.c      Sun May 11 17:41:29 2014        (r265886)
+++ head/sys/vm/vm_fault.c      Sun May 11 18:07:07 2014        (r265887)
@@ -1359,6 +1359,7 @@ again:
                                        VM_OBJECT_WUNLOCK(dst_object);
                                        VM_OBJECT_RUNLOCK(object);
                                        VM_WAIT;
+                                       VM_OBJECT_WLOCK(dst_object);
                                        goto again;
                                }
                        } while (dst_m == NULL);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to