From mboxrd@z Thu Jan 1 00:00:00 1970 From: Balbir Singh Subject: MPTSAS problems in 2.6.26-rc2-mm1 Date: Wed, 28 May 2008 15:11:25 +0530 Message-ID: <483D28C5.4060406@linux.vnet.ibm.com> Reply-To: balbir@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: linux-scsi@vger.kernel.org Cc: Andrew Morton , linux kernel mailing list , Peter Zijlstra List-Id: linux-scsi@vger.kernel.org I have 2.6.26-rc2-mm1 with Rik's splitvm patches. While booting the kernel, I ran into the following. I searched my email quickly to see that no one else has reported this problem. Lockdep seems to be complaining about the same lock being held at the same location (the message is a bit confusing to me). ============================================= [ INFO: possible recursive locking detected ] 2.6.26-rc2-mm1 #2 --------------------------------------------- insmod/1072 is trying to acquire lock: (&cls->mutex){--..}, at: [] device_add+0x46e/0x5d7 but task is already holding lock: (&cls->mutex){--..}, at: [] device_add+0x46e/0x5d7 other info that might help us debug this: 3 locks held by insmod/1072: #0: (&ioc->sas_discovery_mutex){--..}, at: [] mptsas_probe+0x3a1/0x442 [mptsas] #1: (&shost->scan_mutex){--..}, at: [] scsi_scan_target+0x71/0xb0 #2: (&cls->mutex){--..}, at: [] device_add+0x46e/0x5d7 stack backtrace: Pid: 1072, comm: insmod Not tainted 2.6.26-rc2-mm1 #2 Call Trace: [] __lock_acquire+0x911/0xc4c [] ? __lock_acquire+0xc01/0xc4c [] ? device_add+0x46e/0x5d7 [] lock_acquire+0x8e/0xb2 [] ? device_add+0x46e/0x5d7 [] mutex_lock_nested+0xf2/0x27f [] ? device_add+0x46e/0x5d7 [] ? _spin_unlock+0x26/0x2a [] device_add+0x46e/0x5d7 [] device_register+0x19/0x1d [] device_create+0xdf/0x110 [] ? trace_hardirqs_on_caller+0xf9/0x124 [] ? trace_hardirqs_on+0xd/0xf [] ? mutex_unlock+0x9/0xb [] ? kobj_map+0x119/0x12e [] ? exact_lock+0x0/0x14 [] ? exact_match+0x0/0x9 [] sg_add+0x262/0x394 [] ? _spin_unlock+0x26/0x2a [] device_add+0x4bd/0x5d7 [] scsi_sysfs_add_sdev+0xde/0x200 [] scsi_probe_and_add_lun+0x847/0x977 [] __scsi_scan_target+0xbf/0x522 [] ? trace_hardirqs_on_caller+0xf9/0x124 [] ? debug_mutex_free_waiter+0x46/0x4a [] ? mutex_lock_nested+0x270/0x27f [] ? scsi_scan_target+0x71/0xb0 [] scsi_scan_target+0x9c/0xb0 [] :scsi_transport_sas:sas_rphy_add+0x14c/0x15b [] :mptsas:mptsas_probe_one_phy+0x364/0x3a9 [] :mptsas:mptsas_probe_hba_phys+0x5bb/0x614 [] ? :mptbase:mpt_timer_expired+0x0/0x2e [] ? :mptbase:mpt_timer_expired+0x0/0x2e [] ? :mptbase:mpt_timer_expired+0x0/0x2e [] :mptsas:mptsas_probe+0x3a9/0x442 [] pci_device_probe+0xbd/0x116 [] driver_probe_device+0xdb/0x162 [] __driver_attach+0x4f/0x79 [] ? __driver_attach+0x0/0x79 [] bus_for_each_dev+0x4d/0x7e [] driver_attach+0x1c/0x1e [] bus_add_driver+0xba/0x212 [] driver_register+0x93/0x10a [] __pci_register_driver+0x73/0xad [] :mptsas:mptsas_init+0xe2/0xfa [] sys_init_module+0x9e/0x1b2 [] system_call_after_swapgs+0x7b/0x80 -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL