HomeFreeBSD

- Don't acquire the vnode interlock in _vn_lock() unless no lock type

Description

  • Don't acquire the vnode interlock in _vn_lock() unless no lock type is requested. Handle this case specially before the while loop.
  • Use the held vnode lock to check for VI_DOOMED. The vnode lock and interlock must both be held to set VI_DOOMED so either one held, even shared, is sufficient to check it.

No objection by: kib

Details

Provenance
jeffAuthored on Mar 24 2008, 4:17 AM
Parents
rG97735db712a3: - Remove an old comment; vnodes have been working without Giant for
Branches
Unknown
Tags
Unknown

Event Timeline