- 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:
parent
938e1f1a5c
commit
7b0b6888cc
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user