Merge fifo_vnops.c:1.126 from HEAD to RELENG_6:
Assert that (vp) is locked in fifo_close(), since we rely on the exclusive vnode lock to synchronize the reference counts on struct fifoinfo. Approved by: re (scottl)
This commit is contained in:
parent
37c3665582
commit
533efa352a
@ -418,6 +418,7 @@ fifo_close(ap)
|
||||
struct vnode *vp = ap->a_vp;
|
||||
struct fifoinfo *fip = vp->v_fifoinfo;
|
||||
|
||||
ASSERT_VOP_LOCKED(vp, "fifo_close");
|
||||
if (ap->a_fflag & FREAD) {
|
||||
fip->fi_readers--;
|
||||
if (fip->fi_readers == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user