mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
7da7362b95
commit
526e258d3a
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue