diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2017-10-24 15:25:22 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-11-20 08:28:36 +0100 |
commit | 9d7fab04b95e8c26014a9bfc1c943b8360b44c17 (patch) | |
tree | e3724bf21fa48b057b4c34eb95eed46eac33d035 /drivers/nvme/host | |
parent | 9e0ed16ab9a9aaf670b81c9cd05b5e50defed654 (diff) | |
download | lwn-9d7fab04b95e8c26014a9bfc1c943b8360b44c17.tar.gz lwn-9d7fab04b95e8c26014a9bfc1c943b8360b44c17.zip |
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>
Diffstat (limited to 'drivers/nvme/host')
0 files changed, 0 insertions, 0 deletions