From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: 2.5.50: sleeping function called from illegal context Date: Tue, 03 Dec 2002 13:01:13 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <200212030407.53337.baldrick@wanadoo.fr> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <200212030407.53337.baldrick@wanadoo.fr> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Duncan Sands Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 3 Dec 2002 04:07:52 +0100, Duncan Sands wrote: > > Got this with today 2.5 BK tree: > > Debug: sleeping function called from illegal context at include/asm/semaphore.h:119 > Call Trace: > [] __might_sleep+0x52/0x58 > [] snd_cs46xx_iec958_put+0x36/0xf8 > [] snd_ctl_elem_write+0xe0/0x1a4 > [] snd_ctl_ioctl+0x184/0x2c8 > [] sys_ioctl+0x1fa/0x244 > [] syscall_call+0x7/0xb ouch, we are using rwlock in the control ioctls. mutex is necessary for many controls, so we cannot suppress the use of mutex in control callbacks. but temporary unlocking looks ad-hoc, too... Takashi ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en