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>
Tue, 22 Jan 2019 20:40:37 +0000 (21:40 +0100)
commitea5df5077091cbe9dda6b39b728c387055b6a548
tree3152a8bade1fa272f8f3bcc2fcd28887c74adced
parent38d9cce3d61fe8d6ba24413eba74b4c8d24797f9
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