As LK_EXCLUPGRADE is used in conjuction with LK_NOWAIT, LK_UPGRADE becames

equivalent with this and so operate the switch.

That call is the only one remaining LK_EXCLUPGRADE consumer and removing
it will prepare the ground for LK_EXCLUPGRADE axing and further
lockmgr improvements.

Discussed with: jeff, ups
This commit is contained in:
Attilio Rao 2007-12-27 20:52:05 +00:00
parent 716a237292
commit 98e4f2e2bf

View File

@ -2210,7 +2210,7 @@ vput(struct vnode *vp)
v_decr_useonly(vp);
vp->v_iflag |= VI_OWEINACT;
if (VOP_ISLOCKED(vp, NULL) != LK_EXCLUSIVE) {
error = VOP_LOCK(vp, LK_EXCLUPGRADE|LK_INTERLOCK|LK_NOWAIT, td);
error = VOP_LOCK(vp, LK_UPGRADE|LK_INTERLOCK|LK_NOWAIT, td);
VI_LOCK(vp);
if (error) {
if (vp->v_usecount > 0)