Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2014 18:07:08 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265887 - head/sys/vm
Message-ID:  <201405111807.s4BI78n3006929@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405111807.s4BI78n3006929>