OSDN Git Service

loop: Get rid of loop_index_mutex
authorJan Kara <jack@suse.cz>
Thu, 8 Nov 2018 13:01:04 +0000 (14:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:42:52 +0000 (09:42 +0100)
commit611f77199cd763e6b7c0462c2f199ddb3a089750
tree0b2e08bff39a29079bad77b4c3a89f57b545542f
parent4ee414c3b6021db621901f2697d35774926268f6
loop: Get rid of loop_index_mutex

commit 0a42e99b58a208839626465af194cfe640ef9493 upstream.

Now that loop_ctl_mutex is global, just get rid of loop_index_mutex as
there is no good reason to keep these two separate and it just
complicates the locking.

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