cvs commit: src/sys/vm vm_object.c

John Baldwin jhb at FreeBSD.org
Tue Feb 21 14:09:55 PST 2006


jhb         2006-02-21 22:09:54 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               vm_object.c 
  Log:
  Lock the vm_object while checking its type to see if it is a vnode-backed
  object that requires Giant in vm_object_deallocate().  This is somewhat
  hairy in that if we can't obtain Giant directly, we have to drop the
  object lock, then lock Giant, then relock the object lock and verify that
  we still need Giant.  If we don't (because the object changed to OBJT_DEAD
  for example), then we drop Giant before continuing.
  
  Reviewed by:    alc
  Tested by:      kris
  
  Revision  Changes    Path
  1.358     +25 -11    src/sys/vm/vm_object.c


More information about the cvs-src mailing list