Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754622AbZIWJ1H (ORCPT ); Wed, 23 Sep 2009 05:27:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754305AbZIWJ1H (ORCPT ); Wed, 23 Sep 2009 05:27:07 -0400 Received: from mail-yx0-f199.google.com ([209.85.210.199]:54059 "EHLO mail-yx0-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753234AbZIWJ1G (ORCPT ); Wed, 23 Sep 2009 05:27:06 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sLPVSr6eFOA0dTP/kEqkYyae4E6hLrtIDolBoaN+R3Sa3lSjXOlVyZIcg5z0EXNLxG 45eHAOqo++L5B0zrcM2AspDOm2SmWc7U29+ohna2yfcoZLM2f716TU0SPLPKICV+TrwO 4nLk5W682rGS1ILm0KpkRIQNFoppCJhyilED8= MIME-Version: 1.0 Date: Wed, 23 Sep 2009 17:27:08 +0800 Message-ID: <7b6bb4a50909230227h50cccb0enb02d42664dd61872@mail.gmail.com> Subject: BUG: sleeping function called from invalid context at kernel/mutex.c:280 From: Xiaotian Feng To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1544 Lines: 37 Hi, I got following messages when I resume from suspend with 2.6.31. Is there anything wrong? Thanks. BUG: sleeping function called from invalid context at kernel/mutex.c:280 in_atomic(): 0, irqs_disabled(): 1, pid: 2473, name: pm-suspend 2 locks held by pm-suspend/2473: #0: (&buffer->mutex){......}, at: [] sysfs_write_file+0x3c/0x137 #1: (pm_mutex){......}, at: [] enter_state+0x39/0x130 Pid: 2473, comm: pm-suspend Not tainted 2.6.31 #1 Call Trace: [] ? __debug_show_held_locks+0x22/0x24 [] __might_sleep+0x107/0x10b [] mutex_lock_nested+0x25/0x43 [] clocksource_resume+0x1c/0x60 [] timekeeping_resume+0x1e/0x1c8 [] __sysdev_resume+0x25/0xcf [] sysdev_resume+0x6d/0xae [] suspend_devices_and_enter+0x12b/0x1af [] enter_state+0xdf/0x130 [] state_store+0xb6/0xd3 [] kobj_attr_store+0x17/0x19 [] sysfs_write_file+0xfb/0x137 [] vfs_write+0xae/0x10b [] ? __up_read+0x1a/0x7f [] sys_write+0x4a/0x6e [] system_call_fastpath+0x16/0x1b Regards Xiaotian -- 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/