mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Assert an exclusive vnode lock for fifo_cleanup() and fifo_close() since
they change v_fifoinfo. Discussed with: ups (a while ago)
This commit is contained in:
parent
59efa8b517
commit
be09858abd
1 changed files with 2 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ fifo_cleanup(struct vnode *vp)
|
|||
{
|
||||
struct fifoinfo *fip = vp->v_fifoinfo;
|
||||
|
||||
ASSERT_VOP_LOCKED(vp, "fifo_cleanup");
|
||||
ASSERT_VOP_ELOCKED(vp, "fifo_cleanup");
|
||||
if (fip->fi_readers == 0 && fip->fi_writers == 0) {
|
||||
vp->v_fifoinfo = NULL;
|
||||
(void)soclose(fip->fi_readsock);
|
||||
|
|
@ -422,7 +422,7 @@ fifo_close(ap)
|
|||
struct vnode *vp = ap->a_vp;
|
||||
struct fifoinfo *fip = vp->v_fifoinfo;
|
||||
|
||||
ASSERT_VOP_LOCKED(vp, "fifo_close");
|
||||
ASSERT_VOP_ELOCKED(vp, "fifo_close");
|
||||
if (fip == NULL) {
|
||||
printf("fifo_close: no v_fifoinfo %p\n", vp);
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue