]> git.baikalelectronics.ru Git - kernel.git/commit
loop: rewrite loop_exit using idr_for_each_entry
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Jun 2021 14:59:08 +0000 (16:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:34:13 +0000 (15:34 -0600)
commit8e60947d2f1ee675681a526da99fa587e63f78e3
tree248933eea7525af9fec0f03499f612e2fed9a11b
parentb9848081465d8734441408129bd44311c7b6d644
loop: rewrite loop_exit using idr_for_each_entry

Use idr_for_each_entry to simplify removing all devices.

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