]> git.baikalelectronics.ru Git - kernel.git/commit
loop: move loop_ctl_mutex locking into loop_add
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Jun 2021 14:59:05 +0000 (16:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:34:13 +0000 (15:34 -0600)
commit18d1f200b3807c383d80cc00d6bbdee288e63b1f
tree38c44b5cc9c92a201f92489d1f273a4d477627d4
parentf9d107644aa4943b383986a8aa36125379eeaa81
loop: move loop_ctl_mutex locking into loop_add

Move acquiring and releasing loop_ctl_mutex from the callers into
loop_add.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link: https://lore.kernel.org/r/20210623145908.92973-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c