* [Bug 10979] New: INFO: possible recursive locking detected
@ 2008-06-25 9:02 bugme-daemon
2008-06-25 15:39 ` [Bug 10979] " bugme-daemon
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bugme-daemon @ 2008-06-25 9:02 UTC (permalink / raw)
To: linux-scsi
http://bugzilla.kernel.org/show_bug.cgi?id=10979
Summary: INFO: possible recursive locking detected
Product: IO/Storage
Version: 2.5
KernelVersion: 2.6.26-rc5
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: SCSI
AssignedTo: linux-scsi@vger.kernel.org
ReportedBy: zdenek.kabelac@gmail.com
Latest working kernel version:
Earliest failing kernel version:
Distribution: fedora rawhide
Hardware Environment: T61 2G C2D
Software Environment:
Problem Description:
While checking message logs for error traces - I've noticed an older INFO:
trace. I'm not sure if it's still applicable to -rc8 - but the scenario in this
case was, that I've tried to attach 3.5" hdd via USB and usually I've to
restart/reattach device several times to get it usable/visible in the system.
It's interesting that with another older laptop Toshiba I do not usually see
this problem. Anyway during one of failed USB attachement this appeared in the
log:
----
scsi 7:0:0:0: Device offlined - not ready after error recovery
scsi 7:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT
driverbyte=DRIVER_OK,SUGGEST_OK
end_request: I/O error, dev sdb, sector 344
Buffer I/O error on device sdb, logical block 43
Buffer I/O error on device sdb, logical block 44
Buffer I/O error on device sdb, logical block 45
Buffer I/O error on device sdb, logical block 46
Buffer I/O error on device sdb, logical block 47
Buffer I/O error on device sdb, logical block 48
Buffer I/O error on device sdb, logical block 49
Buffer I/O error on device sdb, logical block 50
Buffer I/O error on device sdb, logical block 51
Buffer I/O error on device sdb, logical block 52
scsi 7:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT
driverbyte=DRIVER_OK,SUGGEST_OK
end_request: I/O error, dev sdb, sector 512
=============================================
[ INFO: possible recursive locking detected ]
2.6.26-rc5 #34
---------------------------------------------
kblockd/1/58 is trying to acquire lock:
(&q->unplug_work){--..}, at: [<ffffffff8104eb62>]
__cancel_work_timer+0x72/0x230
but task is already holding lock:
(&q->unplug_work){--..}, at: [<ffffffff8104e22a>] run_workqueue+0xaa/0x240
other info that might help us debug this:
2 locks held by kblockd/1/58:
#0: (kblockd){--..}, at: [<ffffffff8104e22a>] run_workqueue+0xaa/0x240
#1: (&q->unplug_work){--..}, at: [<ffffffff8104e22a>]
run_workqueue+0xaa/0x240
stack backtrace:
Pid: 58, comm: kblockd/1 Not tainted 2.6.26-rc5 #34
Call Trace:
[<ffffffff81063521>] __lock_acquire+0xae1/0x11d0
[<ffffffff810133d8>] ? native_sched_clock+0x78/0x80
[<ffffffff81062da4>] ? __lock_acquire+0x364/0x11d0
[<ffffffff810133d8>] ? native_sched_clock+0x78/0x80
[<ffffffff8104eb62>] ? __cancel_work_timer+0x72/0x230
[<ffffffff81063ca6>] lock_acquire+0x96/0xe0
[<ffffffff8104eb62>] ? __cancel_work_timer+0x72/0x230
[<ffffffff8104eb92>] __cancel_work_timer+0xa2/0x230
[<ffffffff810620fd>] ? mark_held_locks+0x4d/0x90
[<ffffffff812f5f85>] ? _spin_unlock_irqrestore+0x65/0x90
[<ffffffff81062321>] ? trace_hardirqs_on+0x131/0x190
[<ffffffff812f5f65>] ? _spin_unlock_irqrestore+0x45/0x90
[<ffffffff810466a6>] ? try_to_del_timer_sync+0x76/0x90
[<ffffffff8104ed3b>] cancel_work_sync+0xb/0x10
[<ffffffff81168587>] blk_sync_queue+0x27/0x30
[<ffffffff8116a313>] blk_release_queue+0x23/0x70
[<ffffffff8117821a>] kobject_release+0x4a/0xa0
[<ffffffff811781d0>] ? kobject_release+0x0/0xa0
[<ffffffff81179267>] kref_put+0x37/0x70
[<ffffffff811780d7>] kobject_put+0x27/0x60
[<ffffffff8116854b>] blk_cleanup_queue+0x5b/0x70
[<ffffffff81213ce9>] scsi_free_queue+0x9/0x10
[<ffffffff8121955b>] scsi_device_dev_release_usercontext+0xeb/0x140
[<ffffffff81219470>] ? scsi_device_dev_release_usercontext+0x0/0x140
[<ffffffff8104f1d6>] execute_in_process_context+0x86/0x90
[<ffffffff81219467>] scsi_device_dev_release+0x17/0x20
[<ffffffff812044a9>] device_release+0x19/0x80
[<ffffffff8117821a>] kobject_release+0x4a/0xa0
[<ffffffff811781d0>] ? kobject_release+0x0/0xa0
[<ffffffff81179267>] kref_put+0x37/0x70
[<ffffffff811780d7>] kobject_put+0x27/0x60
[<ffffffff81203d35>] put_device+0x15/0x20
[<ffffffff81213e8f>] scsi_request_fn+0x9f/0x450
[<ffffffff811669e0>] ? blk_unplug_work+0x0/0x20
[<ffffffff811686d7>] __generic_unplug_device+0x27/0x30
[<ffffffff811687e9>] generic_unplug_device+0x29/0x40
[<ffffffff811669f4>] blk_unplug_work+0x14/0x20
[<ffffffff8104e275>] run_workqueue+0xf5/0x240
[<ffffffff8104e467>] worker_thread+0xa7/0x120
[<ffffffff810529d0>] ? autoremove_wake_function+0x0/0x40
[<ffffffff8104e3c0>] ? worker_thread+0x0/0x120
[<ffffffff81052639>] kthread+0x49/0x90
[<ffffffff8100d478>] child_rip+0xa/0x12
[<ffffffff8100cb63>] ? restore_args+0x0/0x30
[<ffffffff810525f0>] ? kthread+0x0/0x90
[<ffffffff8100d46e>] ? child_rip+0x0/0x12
Steps to reproduce:
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 10979] INFO: possible recursive locking detected
2008-06-25 9:02 [Bug 10979] New: INFO: possible recursive locking detected bugme-daemon
@ 2008-06-25 15:39 ` bugme-daemon
2008-06-25 18:27 ` bugme-daemon
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugme-daemon @ 2008-06-25 15:39 UTC (permalink / raw)
To: linux-scsi
http://bugzilla.kernel.org/show_bug.cgi?id=10979
akpm@osdl.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |akpm@osdl.org,
| |axboe@kernel.dk
------- Comment #1 from akpm@osdl.org 2008-06-25 08:39 -------
hrm, I'm not sure why that didn't simply deadlock. But still, doing
blk_sync_queue()
within the context of __generic_unplug_device(), with the queue lock
held sounds wrong.
Jens, could you please have a ponder?
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 10979] INFO: possible recursive locking detected
2008-06-25 9:02 [Bug 10979] New: INFO: possible recursive locking detected bugme-daemon
2008-06-25 15:39 ` [Bug 10979] " bugme-daemon
@ 2008-06-25 18:27 ` bugme-daemon
2008-06-25 19:15 ` bugme-daemon
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugme-daemon @ 2008-06-25 18:27 UTC (permalink / raw)
To: linux-scsi
http://bugzilla.kernel.org/show_bug.cgi?id=10979
------- Comment #2 from axboe@kernel.dk 2008-06-25 11:27 -------
Andrew, I don't think that is what is going wrong (we are not doing
blk_sync_queue() from __generic_unplug_device(), it's post poned to user
context). So it looks like a "simple" look inversion problem. I'll take a look.
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 10979] INFO: possible recursive locking detected
2008-06-25 9:02 [Bug 10979] New: INFO: possible recursive locking detected bugme-daemon
2008-06-25 15:39 ` [Bug 10979] " bugme-daemon
2008-06-25 18:27 ` bugme-daemon
@ 2008-06-25 19:15 ` bugme-daemon
2010-01-19 18:25 ` bugzilla-daemon
2010-01-19 18:25 ` bugzilla-daemon
4 siblings, 0 replies; 6+ messages in thread
From: bugme-daemon @ 2008-06-25 19:15 UTC (permalink / raw)
To: linux-scsi
http://bugzilla.kernel.org/show_bug.cgi?id=10979
------- Comment #3 from akpm@osdl.org 2008-06-25 12:15 -------
I think we do and I expect it's accidental - vie two nested
kobject_put()s.
If the backtrace is indeed incorrect then please let us know and
we can bug people about it. I thought that the non-question-marked
entries are considered reliable.
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 10979] INFO: possible recursive locking detected
2008-06-25 9:02 [Bug 10979] New: INFO: possible recursive locking detected bugme-daemon
` (2 preceding siblings ...)
2008-06-25 19:15 ` bugme-daemon
@ 2010-01-19 18:25 ` bugzilla-daemon
2010-01-19 18:25 ` bugzilla-daemon
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2010-01-19 18:25 UTC (permalink / raw)
To: linux-scsi
http://bugzilla.kernel.org/show_bug.cgi?id=10979
Alan <alan@lxorguk.ukuu.org.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |alan@lxorguk.ukuu.org.uk
Resolution| |INSUFFICIENT_DATA
Regression|--- |No
--- Comment #4 from Alan <alan@lxorguk.ukuu.org.uk> 2010-01-19 18:25:40 ---
no response - closing
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 10979] INFO: possible recursive locking detected
2008-06-25 9:02 [Bug 10979] New: INFO: possible recursive locking detected bugme-daemon
` (3 preceding siblings ...)
2010-01-19 18:25 ` bugzilla-daemon
@ 2010-01-19 18:25 ` bugzilla-daemon
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2010-01-19 18:25 UTC (permalink / raw)
To: linux-scsi
http://bugzilla.kernel.org/show_bug.cgi?id=10979
Alan <alan@lxorguk.ukuu.org.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-01-19 18:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 9:02 [Bug 10979] New: INFO: possible recursive locking detected bugme-daemon
2008-06-25 15:39 ` [Bug 10979] " bugme-daemon
2008-06-25 18:27 ` bugme-daemon
2008-06-25 19:15 ` bugme-daemon
2010-01-19 18:25 ` bugzilla-daemon
2010-01-19 18:25 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).