cvs commit: src/sys/dev/random randomdev.c

John Baldwin jhb at FreeBSD.org
Wed Apr 14 08:42:30 PDT 2004


On Monday 12 April 2004 05:13 am, Mark Murray wrote:
> markm       2004/04/12 02:13:24 PDT
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/dev/random       randomdev.c
>   Log:
>   Fix "sleeping without a mutex" panic.

You should drop the lock before uiomove().  If the uio can possibly reference 
user memory, then uiomove() will do a copyout() which can fault and thus 
sleep if the page is in swap.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the cvs-src mailing list