- It has long been my suspicion that we don't actually need a loop in

vn_lock().  Add an assert that will help me gain more confidence that this
   is correct.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
Jeff Roberson 2005-06-13 00:47:29 +00:00
parent d2ad9baac0
commit d598b04d44

View File

@ -821,6 +821,8 @@ debug_vn_lock(vp, flags, td, filename, line)
*/
error = VOP_LOCK(vp, flags | LK_INTERLOCK, td);
flags &= ~LK_INTERLOCK;
KASSERT((flags & LK_RETRY) == 0 || error == 0,
("LK_RETRY set with incompatible flags %d\n", flags));
/*
* Callers specify LK_RETRY if they wish to get dead vnodes.
* If RETRY is not set, we return ENOENT instead.