Frank Munzert
b3c21e4919
[S390] tape: disable interrupts in tape_open and tape_release
Get tape device lock with interrupts disabled. Otherwise lockdep will issue a
warning similar to:
=================================
[ INFO: inconsistent lock state ]
2.6.27 #1
---------------------------------
inconsistent {in-hardirq-W} -> {hardirq-on-W} usage.
vol_id/2903 [HC0[0]:SC0[0]:HE1:SE1] takes:
(sch->lock){++..}, at: [<000003e00004c7a2>] tape_open+0x42/0x1a4 [tape]
{in-hardirq-W} state was registered at:
[<000000000007ce5c>] __lock_acquire+0x894/0xa74
[<000000000007d0ce>] lock_acquire+0x92/0xb8
[<0000000000345154>] _spin_lock+0x5c/0x9c
[<0000000000202264>] do_IRQ+0x124/0x1f0
[<0000000000026610>] io_return+0x0/0x8
irq event stamp: 847
hardirqs last enabled at (847): [<000000000007aca6>] trace_hardirqs_on+0x2a/0x38
hardirqs last disabled at (846): [<0000000000076ca2>] trace_hardirqs_off+0x2a/0x38
softirqs last enabled at (0): [<000000000004909e>] copy_process+0x43e/0x11f4
softirqs last disabled at (0): [<0000000000000000>] 0x0
other info that might help us debug this:
1 lock held by vol_id/2903:
#0: (&bdev->bd_mutex){--..}, at: [<000000000010e0f4>] do_open+0x78/0x358
stack backtrace:
CPU: 1 Not tainted 2.6.27 #1},
Process vol_id (pid: 2903, task: 000000003d4c0000, ksp: 000000003d4e3b10)
0400000000000000 000000003d4e3830 0000000000000002 0000000000000000
000000003d4e38d0 000000003d4e3848 000000003d4e3848 00000000000168a8
0000000000000000 000000003d4e3b10 0000000000000000 0000000000000000
000000003d4e3830 000000000000000c 000000003d4e3830 000000003d4e38a0
000000000034aa98 00000000000168a8 000000003d4e3830 000000003d4e3880
Call Trace:
([<000000000001681c>] show_trace+0x138/0x158)
[<0000000000016902>] show_stack+0xc6/0xf8
[<00000000000170d4>] dump_stack+0xb0/0xc0
[<0000000000078810>] print_usage_bug+0x1e8/0x228
[<000000000007a71c>] mark_lock+0xb14/0xd24
[<000000000007cd5a>] __lock_acquire+0x792/0xa74
[<000000000007d0ce>] lock_acquire+0x92/0xb8
[<0000000000345154>] _spin_lock+0x5c/0x9c
[<000003e00004c7a2>] tape_open+0x42/0x1a4 [tape]
[<000003e00005185c>] tapeblock_open+0x98/0xd0 [tape]
Signed-off-by: Frank Munzert <munzert@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2008-10-28 11:12:05 +01:00
..
2008-10-25 04:07:13 -04:00
2008-10-27 19:25:30 +01:00
2008-10-20 08:52:32 -07:00
2008-10-21 07:49:06 -04:00
2008-10-26 23:08:48 -07:00
2008-10-21 07:48:21 -04:00
2008-10-27 08:39:52 -07:00
2008-10-20 13:14:06 +02:00
2008-10-23 10:53:02 -07:00
2008-10-16 09:24:43 -07:00
2008-10-25 04:07:44 -04:00
2008-10-20 08:52:40 -07:00
2008-10-26 10:27:01 +01:00
2008-10-20 08:52:42 -07:00
2008-10-22 01:19:39 +02:00
2008-10-23 10:18:40 -07:00
2008-10-26 16:34:14 -07:00
2008-10-26 17:04:40 +01:00
2008-10-23 10:10:25 -07:00
2008-10-26 09:35:05 -07:00
2008-10-24 12:55:14 -04:00
2008-10-16 15:02:24 -07:00
2008-10-23 08:16:03 -07:00
2008-10-27 16:18:28 +00:00
2008-10-16 09:24:43 -07:00
2008-10-27 08:38:16 -07:00
2008-10-16 09:24:43 -07:00
2008-10-26 16:42:18 -07:00
2008-10-21 14:32:12 -02:00
2008-10-21 07:48:33 -04:00
2008-10-23 13:02:03 -07:00
2008-10-24 18:34:39 +02:00
2008-10-23 00:43:47 -04:00
2008-10-21 07:48:37 -04:00
2008-10-21 07:49:00 -04:00
2008-10-26 23:09:27 -07:00
2008-10-16 11:21:30 -07:00
2008-10-21 15:49:55 +11:00
2008-10-23 10:05:40 -07:00
2008-10-21 07:47:06 -04:00
2008-10-23 09:31:09 -07:00
2008-10-25 04:07:14 -04:00
2008-10-23 08:12:21 -07:00
2008-10-23 00:11:07 -04:00
2008-10-20 09:44:30 -07:00
2008-10-20 08:05:15 +02:00
2008-10-23 10:20:15 -07:00
2008-10-28 11:12:05 +01:00
2008-10-23 13:02:03 -07:00
2008-10-23 09:35:18 -07:00
2008-10-16 12:40:26 -07:00
2008-10-23 15:31:09 -04:00
2008-10-20 08:52:36 -07:00
2008-10-20 13:42:14 -07:00
2008-10-23 10:09:50 -07:00
2008-10-20 14:37:53 +01:00
2008-10-23 16:06:49 -07:00
2008-10-20 08:52:42 -07:00
2008-10-23 09:19:47 -07:00
2008-10-22 22:55:20 -07:00
2008-10-20 16:07:19 +01:00
2008-10-26 16:35:46 -07:00