From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: possible recursive locking in ps2_command Date: Wed, 24 Sep 2008 22:17:58 +0300 Message-ID: <20080924191756.GA20149@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from qb-out-0506.google.com ([72.14.204.227]:30438 "EHLO qb-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752587AbYIXTSL (ORCPT ); Wed, 24 Sep 2008 15:18:11 -0400 Received: by qb-out-0506.google.com with SMTP id f11so52251qba.17 for ; Wed, 24 Sep 2008 12:18:10 -0700 (PDT) Content-Disposition: inline Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: LKML , dmitry.torokhov@gmail.com, linux-input@vger.kernel.org I got the following on resume on my T60p, this might indicate a potential deadlock I think. [33491.050660] psmouse.c: Failed to enable mouse on isa0060/serio1 [33491.054938] PM: Removing info for No Bus:mouse1 [33491.064134] PM: Removing info for No Bus:event8 [33491.080154] PM: Removing info for No Bus:input8 [33491.089117] [33491.089120] ============================================= [33491.089128] [ INFO: possible recursive locking detected ] [33491.089133] 2.6.27-rc7-mst #53 [33491.089137] --------------------------------------------- [33491.089141] kseriod/147 is trying to acquire lock: [33491.089146] (&ps2dev->cmd_mutex){--..}, at: [] ps2_command+0x43/0x3a0 [33491.089162] [33491.089163] but task is already holding lock: [33491.089168] (&ps2dev->cmd_mutex){--..}, at: [] ps2_command+0x43/0x3a0 [33491.089179] [33491.089180] other info that might help us debug this: [33491.089185] 4 locks held by kseriod/147: [33491.089189] #0: (serio_mutex){--..}, at: [] serio_thread+0x22/0x340 [33491.089204] #1: (&serio->drv_mutex){--..}, at: [] serio_connect_driver+0x24/0x50 [33491.089218] #2: (psmouse_mutex){--..}, at: [] psmouse_connect+0x1a/0x250 [psmouse] [33491.089246] #3: (&ps2dev->cmd_mutex){--..}, at: [] ps2_command+0x43/0x3a0 [33491.089259] [33491.089260] stack backtrace: [33491.089266] Pid: 147, comm: kseriod Not tainted 2.6.27-rc7-mst #53 [33491.089272] [] validate_chain+0xbd4/0xeb0 [33491.089282] [] ? find_usage_backwards+0x1a/0x100 [33491.089293] [] __lock_acquire+0x239/0x950 [33491.089301] [] ? validate_chain+0xc0/0xeb0 [33491.089311] [] lock_acquire+0x5e/0x80 [33491.089319] [] ? ps2_command+0x43/0x3a0 [33491.089327] [] mutex_lock_nested+0x9f/0x270 [33491.089337] [] ? ps2_command+0x43/0x3a0 [33491.089346] [] ? ps2_command+0x43/0x3a0 [33491.089354] [] ? __lock_acquire+0x239/0x950 [33491.089363] [] ps2_command+0x43/0x3a0 [33491.089371] [] ? mark_held_locks+0x6b/0x80 [33491.089389] [] psmouse_sliced_command+0x22/0x70 [psmouse] [33491.089404] [] ? trace_hardirqs_on_caller+0xc4/0x150 [33491.089418] [] synaptics_pt_write+0x1e/0x50 [psmouse] [33491.089433] [] ps2_sendbyte+0x3b/0x100 [33491.089440] [] ? trace_hardirqs_on_caller+0xc4/0x150 [33491.089450] [] ? trace_hardirqs_on+0xb/0x10 [33491.089459] [] ps2_command+0xd9/0x3a0 [33491.089467] [] ? trace_hardirqs_on+0xb/0x10 [33491.089476] [] ? _spin_unlock_irq+0x22/0x30 [33491.089492] [] psmouse_probe+0x1d/0xa0 [psmouse] [33491.089508] [] psmouse_connect+0x13e/0x250 [psmouse] [33491.089539] [] serio_connect_driver+0x2b/0x50 [33491.089557] [] serio_driver_probe+0x16/0x20 [33491.089565] [] driver_probe_device+0x84/0x180 [33491.089574] [] ? _spin_unlock+0x1d/0x20 [33491.089584] [] ? klist_next+0x63/0xa0 [33491.089593] [] __device_attach+0x8/0x10 [33491.089602] [] bus_for_each_drv+0x47/0x70 [33491.089610] [] device_attach+0x6e/0x80 [33491.089618] [] ? __device_attach+0x0/0x10 [33491.089628] [] serio_find_driver+0x14/0x50 [33491.089636] [] ? serio_disconnect_port+0x56/0x60 [33491.089646] [] serio_reconnect_port+0x52/0x80 [33491.089654] [] serio_thread+0x2ac/0x340 [33491.089662] [] ? trace_hardirqs_on+0xb/0x10 [33491.089672] [] ? autoremove_wake_function+0x0/0x50 [33491.089681] [] ? serio_thread+0x0/0x340 [33491.089691] [] kthread+0x42/0x70 [33491.089697] [] ? kthread+0x0/0x70 [33491.089705] [] kernel_thread_helper+0x7/0x1c [33491.089714] =======================