nvme-loop: do not warn for deleted controllers during reset
authorHannes Reinecke <hare@suse.de>
Wed, 26 May 2021 15:23:18 +0000 (17:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 08:00:05 +0000 (10:00 +0200)
commit511a01029115e94226e52bad6052ef1f5da8cb6f
treee651eca90d8b9fb22b21c8e55da5e8eee7008bba
parent155c2fea4b31fc0ca5b3028c1ceea03c49ec8884
nvme-loop: do not warn for deleted controllers during reset

[ Upstream commit 6622f9acd29cd4f6272720e827e6406f5a970cb0 ]

During concurrent reset and delete calls the reset workqueue is
flushed, causing nvme_loop_reset_ctrl_work() to be executed when
the controller is in state DELETING or DELETING_NOIO.
But this is expected, so we shouldn't issue a WARN_ON here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/loop.c