mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Add a WITNESS_WARN() to uiomove() to whine if locks are held when this
function is called. MFC after: 1 month
This commit is contained in:
parent
00fcf9d12d
commit
c7836018ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136444
@ -138,6 +138,8 @@ uiomove(void *cp, int n, struct uio *uio)
|
||||
("uiomove: mode"));
|
||||
KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
|
||||
("uiomove proc"));
|
||||
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
|
||||
"Calling uiomove()");
|
||||
|
||||
save = td->td_pflags & TDP_DEADLKTREAT;
|
||||
td->td_pflags |= TDP_DEADLKTREAT;
|
||||
|
Loading…
Reference in New Issue
Block a user