From owner-freebsd-current@FreeBSD.ORG Mon Feb 23 19:43:39 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BD1116A4CE; Mon, 23 Feb 2004 19:43:39 -0800 (PST) Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E266243D31; Mon, 23 Feb 2004 19:43:37 -0800 (PST) (envelope-from kuriyama@imgsrc.co.jp) Received: from localhost (localhost [127.0.0.1]) by white.imgsrc.co.jp (Postfix) with ESMTP id 630832840D0; Tue, 24 Feb 2004 12:43:35 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [IPv6:2001:218:422:2::130]) by white.imgsrc.co.jp (Postfix) with ESMTP id 3537E2840D8; Tue, 24 Feb 2004 12:43:34 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [IPv6:2001:218:422:2::130]) by black.imgsrc.co.jp (Postfix) with ESMTP id 040671E49FD; Tue, 24 Feb 2004 12:43:34 +0900 (JST) Date: Tue, 24 Feb 2004 12:43:34 +0900 Message-ID: <7mwu6dgn15.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: cg@FreeBSD.org User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS snapshot-20020531 X-Mailman-Approved-At: Tue, 24 Feb 2004 05:30:21 -0800 cc: Current Subject: exclusive sleep mutex pcm0 (sound cdev) r = 0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 03:43:39 -0000 I got this warning on my current box: malloc() of "256" with the following non-sleepable locks held: exclusive sleep mutex pcm0 (sound cdev) r = 0 (0xc73e63c0) locked @ dev/sound/pcm/dsp.c:213 I think there is no need to wait in vchan_create(). If kernel does not have resources to return small 256 bytes memory for sound device, we are not in the situation to care whether sound is played correctly or not... Index: vchan.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/pcm/vchan.c,v retrieving revision 1.16 diff -u -r1.16 vchan.c --- vchan.c 28 Jan 2004 08:02:15 -0000 1.16 +++ vchan.c 24 Feb 2004 03:35:19 -0000 @@ -255,7 +255,7 @@ CHN_UNLOCK(parent); - pce = malloc(sizeof(*pce), M_DEVBUF, M_WAITOK | M_ZERO); + pce = malloc(sizeof(*pce), M_DEVBUF, M_NOWAIT | M_ZERO); if (!pce) { CHN_LOCK(parent); return ENOMEM; -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project