Return-path: Received: from mail-ew0-f217.google.com ([209.85.219.217]:45066 "EHLO mail-ew0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751987AbZJTMfS (ORCPT ); Tue, 20 Oct 2009 08:35:18 -0400 MIME-Version: 1.0 Date: Tue, 20 Oct 2009 08:35:21 -0400 Message-ID: Subject: 2.6.32-rc5-git1 -- INFO: possible circular locking dependency detected From: Miles Lane To: LKML , Johannes Berg , Corentin Chary , "Luis R. Rodriguez" , Jouni Malinen , Sujith Manoharan , Vasanthakumar Thiagarajan , Senthil Balasubramanian , linux-wireless Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [ INFO: possible circular locking dependency detected ] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] 2.6.32-rc5-git1 #1 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] ------------------------------------------------------- Oct 20 08:08:21 ubuntu kernel: [ 17.543373] events/0/9 is trying to acquire lock: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] (&rfkill->sync_work){+.+.+.}, at: [] __cancel_work_timer+0x81/0x181 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] but task is already holding lock: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] (&ehotk->hotplug_lock){+.+.+.}, at: [] eeepc_rfkill_hotplug+0x45/0xda [eeepc_laptop] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] which lock already depends on the new lock. Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] the existing dependency chain (in reverse order) is: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] -> #2 (&ehotk->hotplug_lock){+.+.+.}: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __lock_acquire+0x9fb/0xb6d Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] lock_acquire+0x5c/0x73 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __mutex_lock_common+0x39/0x375 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] mutex_lock_nested+0x2b/0x33 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] eeepc_rfkill_hotplug+0x45/0xda [eeepc_laptop] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] eeepc_rfkill_set+0x1d/0x2d [eeepc_laptop] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_set_block+0x6f/0xb1 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __rfkill_switch_all+0x2e/0x51 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_switch_all+0x33/0x41 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_op_handler+0xf0/0x11e [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] worker_thread+0x161/0x233 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] kthread+0x5f/0x64 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] kernel_thread_helper+0x7/0x10 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] -> #1 (rfkill_global_mutex){+.+.+.}: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __lock_acquire+0x9fb/0xb6d Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] lock_acquire+0x5c/0x73 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __mutex_lock_common+0x39/0x375 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] mutex_lock_nested+0x2b/0x33 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_sync_work+0x16/0x35 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] worker_thread+0x161/0x233 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] kthread+0x5f/0x64 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] kernel_thread_helper+0x7/0x10 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] -> #0 (&rfkill->sync_work){+.+.+.}: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __lock_acquire+0x8fd/0xb6d Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] lock_acquire+0x5c/0x73 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __cancel_work_timer+0xa9/0x181 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] cancel_work_sync+0xa/0xc Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_unregister+0x37/0x93 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] wiphy_unregister+0x21/0x14c [cfg80211] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ieee80211_unregister_hw+0xa7/0xc5 [mac80211] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ath_detach+0x73/0x11b [ath9k] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ath_cleanup+0xb/0x35 [ath9k] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ath_pci_remove+0x15/0x17 [ath9k] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] pci_device_remove+0x19/0x39 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __device_release_driver+0x59/0x9d Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] device_release_driver+0x18/0x23 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] bus_remove_device+0x71/0x7e Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] device_del+0xf0/0x131 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] device_unregister+0xb/0x15 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] pci_stop_bus_device+0x45/0x61 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] pci_remove_bus_device+0xd/0x90 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] eeepc_rfkill_hotplug+0xbd/0xda [eeepc_laptop] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] eeepc_rfkill_set+0x1d/0x2d [eeepc_laptop] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_set_block+0x6f/0xb1 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __rfkill_switch_all+0x2e/0x51 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_switch_all+0x33/0x41 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_op_handler+0xf0/0x11e [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] worker_thread+0x161/0x233 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] kthread+0x5f/0x64 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] kernel_thread_helper+0x7/0x10 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] other info that might help us debug this: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] 4 locks held by events/0/9: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] #0: (events){+.+.+.}, at: [] worker_thread+0x11f/0x233 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] #1: ((rfkill_op_work).work){+.+.+.}, at: [] worker_thread+0x11f/0x233 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] #2: (rfkill_global_mutex){+.+.+.}, at: [] rfkill_switch_all+0x1e/0x41 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] #3: (&ehotk->hotplug_lock){+.+.+.}, at: [] eeepc_rfkill_hotplug+0x45/0xda [eeepc_laptop] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] stack backtrace: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Pid: 9, comm: events/0 Not tainted 2.6.32-rc5-git1 #1 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] Call Trace: Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? printk+0xf/0x17 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] print_circular_bug+0x8a/0x96 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __lock_acquire+0x8fd/0xb6d Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] lock_acquire+0x5c/0x73 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? __cancel_work_timer+0x81/0x181 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __cancel_work_timer+0xa9/0x181 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? __cancel_work_timer+0x81/0x181 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? mark_lock+0x1e/0x1e2 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? mark_held_locks+0x43/0x5b Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? kfree+0xbf/0xcb Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] cancel_work_sync+0xa/0xc Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_unregister+0x37/0x93 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] wiphy_unregister+0x21/0x14c [cfg80211] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? destroy_workqueue+0x72/0x77 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ieee80211_unregister_hw+0xa7/0xc5 [mac80211] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ath_detach+0x73/0x11b [ath9k] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ath_cleanup+0xb/0x35 [ath9k] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ath_pci_remove+0x15/0x17 [ath9k] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] pci_device_remove+0x19/0x39 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __device_release_driver+0x59/0x9d Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] device_release_driver+0x18/0x23 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] bus_remove_device+0x71/0x7e Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] device_del+0xf0/0x131 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] device_unregister+0xb/0x15 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] pci_stop_bus_device+0x45/0x61 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] pci_remove_bus_device+0xd/0x90 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] eeepc_rfkill_hotplug+0xbd/0xda [eeepc_laptop] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] eeepc_rfkill_set+0x1d/0x2d [eeepc_laptop] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_set_block+0x6f/0xb1 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] __rfkill_switch_all+0x2e/0x51 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_switch_all+0x33/0x41 [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] rfkill_op_handler+0xf0/0x11e [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] worker_thread+0x161/0x233 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? worker_thread+0x11f/0x233 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? rfkill_op_handler+0x0/0x11e [rfkill] Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? autoremove_wake_function+0x0/0x2f Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? worker_thread+0x0/0x233 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] kthread+0x5f/0x64 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] ? kthread+0x0/0x64 Oct 20 08:08:21 ubuntu kernel: [ 17.543373] [] kernel_thread_helper+0x7/0x10