Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 06:58:43 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r269915 - stable/10/sys/vm
Message-ID:  <201408130658.s7D6whIc042150@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Aug 13 06:58:42 2014
New Revision: 269915
URL: http://svnweb.freebsd.org/changeset/base/269915

Log:
  MFC r269643:
  Weaken the requirement for the vm object lock by only asserting locked
  object in vm_pager_page_unswapped(), instead of locked exclusively.

Modified:
  stable/10/sys/vm/vm_pager.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/vm/vm_pager.h
==============================================================================
--- stable/10/sys/vm/vm_pager.h	Wed Aug 13 06:55:30 2014	(r269914)
+++ stable/10/sys/vm/vm_pager.h	Wed Aug 13 06:58:42 2014	(r269915)
@@ -187,7 +187,7 @@ static __inline void
 vm_pager_page_unswapped(vm_page_t m)
 {
 
-	VM_OBJECT_ASSERT_WLOCKED(m->object);
+	VM_OBJECT_ASSERT_LOCKED(m->object);
 	if (pagertab[m->object->type]->pgo_pageunswapped)
 		(*pagertab[m->object->type]->pgo_pageunswapped)(m);
 }



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