]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-loop: check if queue is ready in queue_rq
authorSagi Grimberg <sagi@grimberg.me>
Tue, 24 Oct 2017 12:25:22 +0000 (15:25 +0300)
committerChristoph Hellwig <hch@lst.de>
Mon, 20 Nov 2017 07:28:36 +0000 (08:28 +0100)
commit4115822ee864cf4c9971418b731a5042c2070659
treee3724bf21fa48b057b4c34eb95eed46eac33d035
parentc057625d64393527e26ffbb5d8dd501080dd5713
nvme-loop: check if queue is ready in queue_rq

In case the queue is not LIVE (fully functional and connected at the nvmf
level), we cannot allow any commands other than connect to pass through.

Add a new queue state flag NVME_LOOP_Q_LIVE which is set after nvmf connect
and cleared in queue teardown.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/loop.c