loop: Push loop_ctl_mutex down to loop_get_status()
authorJan Kara <jack@suse.cz>
Thu, 8 Nov 2018 13:01:08 +0000 (14:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2018 13:30:20 +0000 (06:30 -0700)
commit4a5ce9ba5877e4640200d84a735361306ad1a1b8
tree0f5cb70f33f69c89beea42be3bbf3c121fa31cff
parent7ccd0791d98531df7cd59e92d55e4f063d48a070
loop: Push loop_ctl_mutex down to loop_get_status()

Push loop_ctl_mutex down to loop_get_status() to avoid the unusual
convention that the function gets called with loop_ctl_mutex held and
releases it.

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