From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261608AbULTSsm (ORCPT ); Mon, 20 Dec 2004 13:48:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261610AbULTSsl (ORCPT ); Mon, 20 Dec 2004 13:48:41 -0500 Received: from e32.co.us.ibm.com ([32.97.110.130]:65518 "EHLO e32.co.us.ibm.com") by vger.kernel.org with ESMTP id S261608AbULTSsj (ORCPT ); Mon, 20 Dec 2004 13:48:39 -0500 Date: Mon, 20 Dec 2004 10:48:14 -0800 From: Greg KH To: Lukas Hejtmanek , David Brownell Cc: linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net Subject: Re: Scheduling while atomic (2.6.10-rc3-bk13) Message-ID: <20041220184814.GA21215@kroah.com> References: <20041219231015.GB4166@mail.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041219231015.GB4166@mail.muni.cz> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 20, 2004 at 12:10:15AM +0100, Lukas Hejtmanek wrote: > Hello, > > when suspending to disk I got: > scheduling while atomic: suspenddisk.sh/0x00000001/1452 > [] schedule+0x4b3/0x563 > [] schedule_timeout+0x5d/0xab > [] process_timeout+0x0/0x9 > [] msleep+0x2c/0x34 > [] ehci_hub_resume+0xed/0x1de [ehci_hcd] > [] usb_resume_device+0x80/0xc7 > [] dpm_resume+0xa2/0xa4 > [] device_resume+0x11/0x1e > [] finish+0x8/0x3a > [] pm_suspend_disk+0x3e/0x73 > [] enter_state+0x6e/0x72 > [] state_store+0xa4/0xb7 > [] subsys_attr_store+0x34/0x3d > [] flush_write_buffer+0x3e/0x4a > [] sysfs_write_file+0x6f/0x7e > [] sysfs_write_file+0x0/0x7e > [] vfs_write+0xf4/0x12f > [] filp_close+0x52/0x96 > [] sys_write+0x51/0x80 > [] syscall_call+0x7/0xb David, it looks like you grab a spinlock, and then call msleep(20); which causes this warning. Care to fix it? thanks, greg k-h