Author: kib
Date: Fri Aug 23 14:50:03 2013
New Revision: 254715
URL: http://svnweb.freebsd.org/changeset/base/254715

Log:
  Since the 253927, which removed the soft busy call for the sf page, it
  does not make sense to wait for the soft busy state of the page to
  drain.  The vm object lock is dropped immediately after, so the result
  of the wait is invalidated.
  
  It might make sense to not wait for the hard busy state as well,
  esp. for the fully valid page, but this is postponed for now.
  
  Reviewed by:  alc
  Tested by:    pho
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/kern/uipc_syscalls.c

Modified: head/sys/kern/uipc_syscalls.c
==============================================================================
--- head/sys/kern/uipc_syscalls.c       Fri Aug 23 14:43:32 2013        
(r254714)
+++ head/sys/kern/uipc_syscalls.c       Fri Aug 23 14:50:03 2013        
(r254715)
@@ -2230,7 +2230,8 @@ retry_space:
                        pindex = OFF_TO_IDX(off);
                        VM_OBJECT_WLOCK(obj);
                        pg = vm_page_grab(obj, pindex, VM_ALLOC_NOBUSY |
-                           VM_ALLOC_NORMAL | VM_ALLOC_WIRED);
+                           VM_ALLOC_IGN_SBUSY | VM_ALLOC_NORMAL |
+                           VM_ALLOC_WIRED);
 
                        /*
                         * Check if page is valid for what we need,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to