mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue