Assert that the vnode is locked. This is meant to catch bugs or

mis-use of the vnode API in conditions where IO_NODELOCKED has been
used without the vnode actually being locked.
This commit is contained in:
csjp 2005-04-05 01:11:43 +00:00
parent 1b586b1fd5
commit 8a050fbf3b

View File

@ -365,6 +365,7 @@ vn_rdwr(rw, vp, base, len, offset, segflg, ioflg, active_cred, file_cred,
}
}
ASSERT_VOP_LOCKED(vp, "IO_NODELOCKED with no vp lock held");
auio.uio_iov = &aiov;
auio.uio_iovcnt = 1;
aiov.iov_base = base;