]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails
authorHannes Reinecke <hare@suse.de>
Wed, 26 May 2021 15:23:16 +0000 (17:23 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:27:30 +0000 (19:27 +0200)
commit9287aabb44daabebfde41483c98377efd0dc4fc9
treedd378be12fafde218d0a0c6c8ef54673520a32c5
parent340b062770538fc3ab7bd73e3bd638a1b7680f02
nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails

BugLink: https://bugs.launchpad.net/bugs/1933851
[ Upstream commit 1c5f8e882a05de5c011e8c3fbeceb0d1c590eb53 ]

When the call to nvme_enable_ctrl() in nvme_loop_configure_admin_queue()
fails the NVME_LOOP_Q_LIVE flag is not cleared.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/nvme/target/loop.c