cvs commit: src/sys/kern kern_intr.c subr_witness.c
src/sys/dev/random randomdev.c
Mark Murray
markm at FreeBSD.org
Thu Nov 20 07:35:51 PST 2003
markm 2003/11/20 07:35:48 PST
FreeBSD src repository
Modified files:
sys/kern kern_intr.c subr_witness.c
sys/dev/random randomdev.c
Log:
Fix a major faux pas of mine. I was causing 2 very bad things to
happen in interrupt context; 1) sleep locks, and 2) malloc/free
calls.
1) is fixed by using spin locks instead.
2) is fixed by preallocating a FIFO (implemented with a STAILQ)
and using elements from this FIFO instead. This turns out
to be rather fast.
OK'ed by: re (scottl)
Thanks to: peter, jhb, rwatson, jake
Apologies to: *
Revision Changes Path
1.46 +56 -12 src/sys/dev/random/randomdev.c
1.103 +0 -4 src/sys/kern/kern_intr.c
1.165 +2 -0 src/sys/kern/subr_witness.c
More information about the cvs-src
mailing list