diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-09-18 10:44:50 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-09-18 10:44:50 +0000 |
commit | 2d8b6f2e2719a6e731112b0e6462c4c6f02fd95c (patch) | |
tree | 89611f8b21cda3f040b7945b34c1773ac8549627 | |
parent | 1f480761492615d539935040c48d69531804ae62 (diff) | |
download | FreeBSD-src-2d8b6f2e2719a6e731112b0e6462c4c6f02fd95c.zip FreeBSD-src-2d8b6f2e2719a6e731112b0e6462c4c6f02fd95c.tar.gz |
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
-rw-r--r-- | sys/fs/fifofs/fifo_vnops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c index 387edbc..3c4cdcd 100644 --- a/sys/fs/fifofs/fifo_vnops.c +++ b/sys/fs/fifofs/fifo_vnops.c @@ -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) |