commit | 9d7fab04b95e8c26014a9bfc1c943b8360b44c17 | [log] [tgz] |
---|---|---|
author | Sagi Grimberg <sagi@grimberg.me> | Tue Oct 24 15:25:22 2017 +0300 |
committer | Christoph Hellwig <hch@lst.de> | Mon Nov 20 08:28:36 2017 +0100 |
tree | e3724bf21fa48b057b4c34eb95eed46eac33d035 | |
parent | 9e0ed16ab9a9aaf670b81c9cd05b5e50defed654 [diff] |
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>