]> git.baikalelectronics.ru Git - kernel.git/commit
loop: fix order of cleaning up the queue and freeing the tagset
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Jun 2021 07:15:47 +0000 (09:15 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Jun 2021 12:53:51 +0000 (06:53 -0600)
commit2a4e978598b6a4dae1ec61dde98fa2247ae8206f
treeac4f47b663b2134ecade6e6657f7625c82691591
parentd96e0d03e56d4c83866d7e4ac9ead0c1433d0f5a
loop: fix order of cleaning up the queue and freeing the tagset

We must release the queue before freeing the tagset.

Fixes: e6cab9fc45ce ("loop: use blk_mq_alloc_disk and blk_cleanup_disk")
Reported-by: Bruno Goncalves <bgoncalv@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c