(unknown charset) [Fwd: cvs commit: src/sys/vm vm_page.c]

From: (unknown charset) Alan L. Cox <alc_at_imimic.com>
Date: Tue, 22 Apr 2003 00:40:12 -0500
This should remedy the kernel panics due to an assertion failure in
vm_page.c that various people have reported.

Regards,
Alan

attached mail follows:


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
Received on Mon Apr 21 2003 - 20:40:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:04 UTC