Commit d0d6b007 authored by Wang Qing's avatar Wang Qing Committed by Li Nan
Browse files

nbd: fix order of cleaning up the queue and freeing the tagset

mainline inclusion
from mainline-v5.14-rc1
commit 16ad3db3
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=16ad3db3b24cd9f70aa24e93cef0d4a83dece7ac



----------------------------------------

We must release the queue before freeing the tagset.

Fixes: 4af5f2e0 ("nbd: use blk_mq_alloc_disk and blk_cleanup_disk")
Reported-and-tested-by: default avatar <syzbot+9ca43ff47167c0ee3466@syzkaller.appspotmail.com>
Signed-off-by: default avatarWang Qing <wangqing@vivo.com>
Signed-off-by: default avatarGuoqing Jiang <jiangguoqing@kylinos.cn>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210706040016.1360412-1-guoqing.jiang@linux.dev


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarZhong Jinghua <zhongjinghua@huawei.com>
Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parent f2fa3d4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment