From owner-cvs-all@FreeBSD.ORG Thu Nov 20 07:35:50 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFBE216A4CE; Thu, 20 Nov 2003 07:35:50 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FFE843F85; Thu, 20 Nov 2003 07:35:50 -0800 (PST) (envelope-from markm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAKFZnXJ071501; Thu, 20 Nov 2003 07:35:50 -0800 (PST) (envelope-from markm@repoman.freebsd.org) Received: (from markm@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAKFZnKe071500; Thu, 20 Nov 2003 07:35:49 -0800 (PST) (envelope-from markm) Message-Id: <200311201535.hAKFZnKe071500@repoman.freebsd.org> From: Mark Murray Date: Thu, 20 Nov 2003 07:35:48 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_intr.c subr_witness.c src/sys/dev/random randomdev.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2003 15:35:51 -0000 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