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:
Christian S.J. Peron 2005-04-05 01:11:43 +00:00
parent 619f4fce79
commit f3e89267c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144643

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;