]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Don't acquire the vnode interlock in _vn_lock() unless no lock type
authorJeff Roberson <jeff@FreeBSD.org>
Mon, 24 Mar 2008 04:17:35 +0000 (04:17 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Mon, 24 Mar 2008 04:17:35 +0000 (04:17 +0000)
commit804e60d4cfec3843b9c7df9b5059566cb34d9c9d
tree87eeb0612db339bcbd7fdd7e47ddc14423ce65bc
parent97735db712a33741e05b0c5043161ac42b41d492
 - 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
sys/kern/vfs_vnops.c