Date: Thu, 20 Nov 2003 07:35:48 -0800 (PST) From: Mark Murray <markm@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_intr.c subr_witness.c src/sys/dev/random randomdev.c Message-ID: <200311201535.hAKFZnKe071500@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311201535.hAKFZnKe071500>