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:
rwatson 2005-09-21 15:31:26 +00:00
parent 37c3665582
commit 533efa352a

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)