For reasons of consistency (and necessity), assert an exclusive vnode
lock on the fifo vnode in fifo_open(): we rely on the vnode lock to serialize access to v_fifoinfo. MFC after: 3 days
This commit is contained in:
parent
078b3f89c7
commit
27cf2ffed6
@ -185,6 +185,7 @@ fifo_open(ap)
|
||||
struct file *fp;
|
||||
int error;
|
||||
|
||||
ASSERT_VOP_LOCKED(vp, "fifo_open");
|
||||
if ((fip = vp->v_fifoinfo) == NULL) {
|
||||
MALLOC(fip, struct fifoinfo *, sizeof(*fip), M_VNODE,
|
||||
M_WAITOK | M_ZERO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user