Petr Uzel
fd51469fb6
block: kill loop_mutex
Following steps lead to deadlock in kernel:
dd if=/dev/zero of=img bs=512 count=1000
losetup -f img
mkfs.ext2 /dev/loop0
mount -t ext2 -o loop /dev/loop0 mnt
umount mnt/
Stacktrace:
[<c102ec04>] irq_exit+0x36/0x59
[<c101502c>] smp_apic_timer_interrupt+0x6b/0x75
[<c127f639>] apic_timer_interrupt+0x31/0x38
[<c101df88>] mutex_spin_on_owner+0x54/0x5b
[<fe2250e9>] lo_release+0x12/0x67 [loop]
[<c10c4eae>] __blkdev_put+0x7c/0x10c
[<c10a4da5>] fput+0xd5/0x1aa
[<fe2250cf>] loop_clr_fd+0x1a9/0x1b1 [loop]
[<fe225110>] lo_release+0x39/0x67 [loop]
[<c10c4eae>] __blkdev_put+0x7c/0x10c
[<c10a59d9>] deactivate_locked_super+0x17/0x36
[<c10b6f37>] sys_umount+0x27e/0x2a5
[<c10b6f69>] sys_oldumount+0xb/0xe
[<c1002897>] sysenter_do_call+0x12/0x26
[<ffffffff>] 0xffffffff
Regression since 2a48fc0ab24241755dc9, which introduced the private
loop_mutex as part of the BKL removal process.
As per [1], the mutex can be safely removed.
[1] http://www.gossamer-threads.com/lists/linux/kernel/1341930
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=669394
Addresses: https://bugzilla.kernel.org/show_bug.cgi?id=29172
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Cc: stable@kernel.org
Reviewed-by: Nikanth Karthikesan <knikanth@suse.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2011-03-03 11:53:25 -05:00
..
2011-02-15 15:25:48 -05:00
2011-01-28 03:16:20 -05:00
2011-02-13 16:55:46 -08:00
2011-01-25 20:50:07 +01:00
2011-03-03 11:53:25 -05:00
2011-02-23 19:42:03 -08:00
2011-02-09 14:22:37 +01:00
2011-02-24 12:19:43 +10:00
2011-01-26 10:50:04 +10:00
2011-01-20 17:02:05 -08:00
2011-01-12 18:06:19 -05:00
2011-01-13 10:25:58 -08:00
2011-01-13 08:03:09 -08:00
2011-02-14 02:40:46 -08:00
2011-02-10 14:41:49 +01:00
2011-01-21 13:34:39 -08:00
2011-02-15 04:20:57 +01:00
2011-02-11 16:12:20 -08:00
2011-02-28 15:35:16 +10:00
2011-01-20 17:02:05 -08:00
2011-02-26 08:59:32 -08:00
2011-02-23 00:43:55 +00:00
2011-01-20 17:02:05 -08:00
2011-01-25 05:57:34 +10:00
2011-02-17 14:04:59 -08:00
2011-02-23 14:44:25 -08:00
2011-02-15 12:18:09 -08:00
2011-01-26 10:49:58 +10:00
2011-01-20 21:37:29 +10:30
2011-01-21 14:08:34 +11:00
2011-02-24 17:26:41 +11:00
2011-02-02 17:52:19 -08:00
2011-02-16 17:48:59 +01:00
2011-02-12 12:51:21 -06:00
2011-01-14 12:38:18 +01:00
2011-02-16 17:48:59 +01:00
2011-01-31 10:53:37 +00:00
2011-02-16 17:48:59 +01:00
2011-02-23 15:03:11 -08:00
2011-02-25 15:07:36 -08:00
2011-01-15 22:01:58 -07:00
2011-01-26 10:49:59 +10:00
2011-02-15 19:06:31 +11:00
2011-02-20 12:47:34 +01:00
2011-02-21 17:06:21 -05:00
2011-01-12 04:59:44 -05:00
2011-01-14 09:25:59 -08:00
2011-02-25 15:07:37 -08:00
2011-02-25 15:07:37 -08:00
2011-02-25 08:51:07 +00:00
2011-02-25 15:07:37 -08:00
2011-02-17 13:13:58 +01:00
2011-01-03 20:02:06 -07:00
2011-03-02 08:48:05 -05:00
2011-01-11 23:27:25 -05:00
2011-01-19 19:02:35 +09:00
2011-02-15 13:25:36 -07:00
2011-02-08 12:03:54 -08:00
2011-02-10 12:19:23 -08:00
2011-02-12 12:32:41 -06:00
2011-01-13 10:05:56 -08:00
2011-02-28 18:00:31 -08:00
2011-02-18 12:36:06 -08:00
2011-02-24 11:16:24 -08:00
2011-02-01 16:48:46 +02:00
2011-01-26 10:50:06 +10:00
2011-01-20 21:37:30 +10:30
2011-02-11 16:12:20 -08:00
2011-02-08 15:07:45 +10:00
2011-02-17 10:31:20 +00:00
2011-01-14 10:12:29 -06:00
2011-01-20 16:39:23 -08:00