loop: fix order of cleaning up the queue and freeing the tagset
mainline inclusion from mainline-v5.14-rc1 commit 6a03cd98 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I81XCK Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6a03cd9843fa4dcf827dc3ad60fa9b4217f3057c ---------------------------------------- We must release the queue before freeing the tagset. Fixes: 1c99502f ("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> conflict: drivers/block/loop.c Signed-off-by:
Zhong Jinghua <zhongjinghua@huawei.com> Signed-off-by:
Li Nan <linan122@huawei.com>
Loading
Please sign in to comment