loop: Push loop_ctl_mutex down to loop_change_fd()
authorJan Kara <jack@suse.cz>
Thu, 8 Nov 2018 13:01:11 +0000 (14:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2018 13:30:28 +0000 (06:30 -0700)
commitc371077000f4138ee3c15fbed50101ff24bdc91d
tree70fa902416767566a42c804137ff7316009ffb64
parent757ecf40b7e029529768eb5f9562d5eeb3002106
loop: Push loop_ctl_mutex down to loop_change_fd()

Push loop_ctl_mutex down to loop_change_fd(). We will need this to be
able to call loop_reread_partitions() without loop_ctl_mutex.

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