mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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:
parent
619f4fce79
commit
f3e89267c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144643
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user