Assert that (vp) is locked in fifo_close(), since we rely on the

exclusive vnode lock to synchronize the reference counts on struct
fifoinfo.

MFC after:	3 days
This commit is contained in:
Robert Watson 2005-09-18 10:44:50 +00:00
parent 7da7362b95
commit 526e258d3a

View file

@ -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)