From owner-svn-src-head@FreeBSD.ORG Sun May 11 18:07:08 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A24F653; Sun, 11 May 2014 18:07:08 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 37A0627B0; Sun, 11 May 2014 18:07:08 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4BI78WN006930; Sun, 11 May 2014 18:07:08 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4BI78n3006929; Sun, 11 May 2014 18:07:08 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201405111807.s4BI78n3006929@svn.freebsd.org> From: Konstantin Belousov Date: Sun, 11 May 2014 18:07:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265887 - head/sys/vm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 18:07:08 -0000 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);