]> git.baikalelectronics.ru Git - kernel.git/commit
loop: Get rid of 'nested' acquisition of loop_ctl_mutex
authorJan Kara <jack@suse.cz>
Thu, 8 Nov 2018 13:01:16 +0000 (14:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2018 13:30:37 +0000 (06:30 -0700)
commite08d47fcedb83c278dc8e0eb0add0751ca438416
tree9f0e55d367f840fbc6a8fa686e2d56e557f131bc
parent8d8b5318e03b29f5826df44408501c7e7c4b060e
loop: Get rid of 'nested' acquisition of loop_ctl_mutex

The nested acquisition of loop_ctl_mutex (->lo_ctl_mutex back then) has
been introduced by commit 91abf07908323 "loop: fix circular locking in
loop_clr_fd()" to fix lockdep complains about bd_mutex being acquired
after lo_ctl_mutex during partition rereading. Now that these are
properly fixed, let's stop fooling lockdep.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c