Author: markj
Date: Thu Nov  7 18:26:29 2019
New Revision: 354461
URL: https://svnweb.freebsd.org/changeset/base/354461

Log:
  Drop Giant before sleeping on a busy page.
  
  Before the page busy code was converted to make direct use of
  sleepqueues, this was handled by _sleep().
  
  Reported by:  glebius
  Reviewed by:  kib
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c       Thu Nov  7 18:26:01 2019        (r354460)
+++ head/sys/vm/vm_page.c       Thu Nov  7 18:26:29 2019        (r354461)
@@ -1053,8 +1053,10 @@ _vm_page_busy_sleep(vm_object_t obj, vm_page_t m, cons
        }
        if (locked)
                VM_OBJECT_DROP(obj);
+       DROP_GIANT();
        sleepq_add(m, NULL, wmesg, 0, 0);
        sleepq_wait(m, PVM);
+       PICKUP_GIANT();
 }
 
 /*
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to