CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2010/09/20 19:09:10

Modified files:
        sys/sys        : systm.h 
        sys/kern       : subr_xxx.c subr_pool.c kern_malloc.c 

Log message:
Add assertwaitok(9) to declare code paths that assume they can sleep.
Currently only checks that we're not in an interrupt context, but will
soon check that we're not holding any mutexes either.

Update malloc(9) and pool(9) to use assertwaitok(9) as appropriate.

"i like it" art@, oga@, marco@; "i see no harm" deraadt@; too trivial
for me to bother prying actual oks from people.

Reply via email to