Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 2 Oct 2002 15:25:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 2 Oct 2002 15:25:32 -0400 Received: from e33.co.us.ibm.com ([32.97.110.131]:1529 "EHLO e33.co.us.ibm.com") by vger.kernel.org with ESMTP id ; Wed, 2 Oct 2002 15:25:29 -0400 Date: Wed, 2 Oct 2002 12:31:59 -0700 From: Mike Anderson To: akpm@digeo.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, dougg@gear.torque.net Subject: Re: 2.4.39 "Sleeping function called from illegal context at slab.c:1374" Message-ID: <20021002193159.GD1317@beaverton.ibm.com> Mail-Followup-To: akpm@digeo.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, dougg@gear.torque.net References: <3D99885B.533C320D@aitel.hist.no> <3D99EF62.3A3E6932@digeo.com> <20021001215907.GA8273@midgaard.us> <3D9A207A.14BFF440@digeo.com> <20021002162443.GA1317@beaverton.ibm.com> <20021002184437.GA17474@midgaard.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021002184437.GA17474@midgaard.us> User-Agent: Mutt/1.4i X-Operating-System: Linux 2.0.32 on an i486 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2010 Lines: 42 Andreas Boman [aboman@nerdfest.org] wrote: > This seems to have fixed that particular warning, and got me a new one: > > Debug: sleeping function called from illegal context at /usr/src/linux-2.5.40/include/asm/semaphore.h:119 > debb7e38 debb7e5c c016f69b c0356860 00000077 df354680 e0907020 e0907028 > e0907020 debb7e78 c0241e06 e09070bc dfd563c8 e0907020 e0907028 debb6000 > debb7e94 c0240348 e0907020 c01f483f e0907020 00000000 00000000 debb7ee4 > Call Trace: > [driverfs_create_dir+75/240]driverfs_create_dir+0x4b/0xf0 > [device_make_dir+70/144]device_make_dir+0x46/0x90 > [device_register+184/368]device_register+0xb8/0x170 > [sprintf+31/48]sprintf+0x1f/0x30 > []sg_attach+0x23a/0x450 [sg] > [].rodata.str1.1+0x6a/0x2b0 [sg] > [].rodata.str1.1+0x23/0x2b0 [sg] > []sg_fops+0x0/0x58 [sg] > []sg_template+0x0/0x94 [sg] > [scsi_register_device+269/336]scsi_register_device+0x10d/0x150 > []init_sg+0x23/0x60 [sg] > []sg_template+0x0/0x94 [sg] > [sys_init_module+1311/1648]sys_init_module+0x51f/0x670 > []E __insmod_sg_O/lib/modules/2.5.40anb4/kernel/drivers/scsi/sg.o_M3D9B4C96_V132392+0x60/0x80 [sg] > []__ksymtab+0x0/0x28 [sg] > []E __insmod_sg_O/lib/modules/2.5.40anb4/kernel/drivers/scsi/sg.o_M3D9B4C96_V132392+0x60/0x80 [sg] > [syscall_call+7/11]syscall_call+0x7/0xb > Sorry, patmans pointed out the issue to me this morning. I was also in a hurray this morning and grab a .config with CONFIG_PREEMPT off. I am running now with PREEMPT and moved the driverfs calls to the other side of the lock give me a few more minutes of testing and I will resend. -andmike -- Michael Anderson andmike@us.ibm.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/