version 1.21, 2007/11/26 19:02:05 |
version 1.22, 2008/01/02 11:48:55 |
Line 224 pty_grant_slave(struct lwp *l, dev_t dev |
|
Line 224 pty_grant_slave(struct lwp *l, dev_t dev |
|
return error; |
return error; |
} |
} |
} |
} |
simple_lock(&vp->v_interlock); |
mutex_enter(&vp->v_interlock); |
revoke = (vp->v_usecount > 1 || (vp->v_iflag & VI_ALIASED) || |
revoke = (vp->v_usecount > 1 || (vp->v_iflag & VI_ALIASED) || |
(vp->v_iflag & VI_LAYER)); |
(vp->v_iflag & VI_LAYER)); |
simple_unlock(&vp->v_interlock); |
mutex_exit(&vp->v_interlock); |
VOP_UNLOCK(vp, 0); |
VOP_UNLOCK(vp, 0); |
if (revoke) |
if (revoke) |
VOP_REVOKE(vp, REVOKEALL); |
VOP_REVOKE(vp, REVOKEALL); |