Make ureadc() warn when holding any locks, just like uiomove().
A couple of months ago I was quite impressed, because when I was writing code, I discovered that uiomove() would not allow any locks to be held, while ureadc() did, mainly because ureadc() is implemented using the same building blocks as uiomove(). Let's see if this triggers any aditional witness warnings on our source tree. Reviewed by: atillio
This commit is contained in:
parent
dfedc4d796
commit
a05cae5186
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182399
@ -325,6 +325,9 @@ ureadc(int c, struct uio *uio)
|
||||
struct iovec *iov;
|
||||
char *iov_base;
|
||||
|
||||
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
|
||||
"Calling ureadc()");
|
||||
|
||||
again:
|
||||
if (uio->uio_iovcnt == 0 || uio->uio_resid == 0)
|
||||
panic("ureadc");
|
||||
|
Loading…
Reference in New Issue
Block a user