]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 07:06:53 +0000 (10:06 +0300)
commitec2da0e601b5c9b18e33871aed137fe375f9bc6d
tree9cf44c00d2699bd63d8cde097cf42e9f08961009
parentcc291ee4f57b772787a0a0fa60efbe3fe2ec32ff
nvme-loop: do not warn for deleted controllers during reset

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>
drivers/nvme/target/loop.c