Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966715AbWKOJUh (ORCPT ); Wed, 15 Nov 2006 04:20:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S966716AbWKOJUg (ORCPT ); Wed, 15 Nov 2006 04:20:36 -0500 Received: from smtp.osdl.org ([65.172.181.4]:52685 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S966715AbWKOJUg (ORCPT ); Wed, 15 Nov 2006 04:20:36 -0500 Date: Wed, 15 Nov 2006 01:20:25 -0800 From: Andrew Morton To: Stephen Hemminger Cc: linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: sleeping functions called in invalid context during resume Message-Id: <20061115012025.13c72fc1.akpm@osdl.org> In-Reply-To: <20061114223002.10c231bd@localhost.localdomain> References: <20061114223002.10c231bd@localhost.localdomain> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1309 Lines: 37 On Tue, 14 Nov 2006 22:30:02 -0800 Stephen Hemminger wrote: > Lots of sleeping while atomic warnings on 2.6.19-rc5 > During resume I see the following: > > > platform floppy.0: EARLY resume > APIC error on CPU0: 00(00) > PM: Finishing wakeup. > BUG: sleeping function called from invalid context at drivers/base/power/resume.c:99 > in_atomic():1, irqs_disabled():0 > > Call Trace: > [] show_trace+0x34/0x47 > [] dump_stack+0x12/0x17 > [] device_resume+0x19/0x51 > [] enter_state+0x19b/0x1b5 > [] state_store+0x5e/0x79 > [] sysfs_write_file+0xc5/0xf8 > [] vfs_write+0xce/0x174 > [] sys_write+0x45/0x6e > [] system_call+0x7e/0x83 > DWARF2 unwinder stuck at system_call+0x7e/0x83 > > Leftover inexact backtrace: Could mean that someone somewhere forgot to release a spinlock. Ingo had a patch which would find the culprit (preempt-tracing.patch). Does it still live? - 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/