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:
rwatson 2005-09-23 12:39:51 +00:00
parent 078b3f89c7
commit 27cf2ffed6

View File

@ -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);