cvs commit: src/sys/vm vm_page.c

Alan Cox alc at FreeBSD.org
Mon Apr 21 22:36:15 PDT 2003


alc         2003/04/21 22:36:14 PDT

  FreeBSD src repository

  Modified files:
    sys/vm               vm_page.c 
  Log:
  Revision 1.52 of vm/uma_core.c has led to UMA's obj_alloc() being
  called without Giant; and obj_alloc() in turn calls vm_page_alloc()
  without Giant.  This causes an assertion failure in vm_page_alloc().
  Fortunately, obj_alloc() is now MPSAFE.  So, we need only clean up
  some assertions.
  
   - Weaken the assertion in vm_page_lookup() to require Giant only
     if the vm_object isn't locked.
   - Remove an assertion from vm_page_alloc() that duplicates a check
     performed in vm_page_lookup().
  
  In collaboration with:  gallatin, jake, jeff
  
  Revision  Changes    Path
  1.246     +2 -3      src/sys/vm/vm_page.c


More information about the cvs-src mailing list