nvme-loop: always quiesce and cancel commands before destroying admin q
authorHannes Reinecke <hare@suse.de>
Tue, 24 Oct 2023 06:13:36 +0000 (08:13 +0200)
committerKeith Busch <kbusch@kernel.org>
Mon, 6 Nov 2023 17:00:15 +0000 (09:00 -0800)
commit55adcdbbdd349de935de677ccb59ff8be8c67f6a
tree0262ede81556a1606b06c6bfc3c7c0527d28d500
parentfd1418de10b9ca03d78404cf00a95138689ea369
nvme-loop: always quiesce and cancel commands before destroying admin q

Once ->init_ctrl_finish() is called there may be commands outstanding,
so we should quiesce the admin queue and cancel all commands prior
to call nvme_loop_destroy_admin_queue().

Signed-off-by: Hannes Reinecke <hare@suse.de>
Tested-by: Mark O'Donovan <shiftee@posteo.net>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/loop.c