- A lock is required before calling VOP_REVOKE. Our reference protects us

from accessing another vnode so a naked VOP_LOCK is sufficient.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
jeff 2005-03-13 11:47:04 +00:00
parent 938e1f1a5c
commit 7b0b6888cc

View File

@ -320,8 +320,9 @@ retry:
sp->s_ttyvp = NULL;
SESS_UNLOCK(p->p_session);
sx_xunlock(&proctree_lock);
VOP_LOCK(ttyvp, LK_EXCLUSIVE, td);
VOP_REVOKE(ttyvp, REVOKEALL);
vrele(ttyvp);
vput(ttyvp);
sx_xlock(&proctree_lock);
}
}