HomeFreeBSD

- Move the xlock 'locking' code into vx_lock() and vx_unlock().

Description

  • Move the xlock 'locking' code into vx_lock() and vx_unlock().
  • Create a new function, vgonechrl(), which performs vgone for an in-use character device. Move the code from vflush() that did this into vgonechrl().
  • Hold the xlock across the entirety of vgonel() and vgonechrl() so that at no point will an invalid vnode exist on any list without XLOCK set.
  • Move the xlock code out of vclean() now that it is in the vgone*() functions.

Details

Provenance
jeffAuthored on Oct 5 2003, 12:02 AM
Parents
rG6caf7e9fa414: Synchronize access to a vm page's valid field using the containing
Branches
Unknown
Tags
Unknown

Event Timeline