commit | 9e0ed16ab9a9aaf670b81c9cd05b5e50defed654 | [log] [tgz] |
---|---|---|
author | Sagi Grimberg <sagi@grimberg.me> | Tue Oct 24 15:25:21 2017 +0300 |
committer | Christoph Hellwig <hch@lst.de> | Mon Nov 20 08:28:35 2017 +0100 |
tree | 596c6fcd7c046a2c4f51913f9b1701edc76e9a3f | |
parent | 48832f8d58cfedb2f9bee11bbfbb657efb42e7e7 [diff] |
nvme-fc: 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_FC_Q_LIVE which is set after nvmf connect and cleared in queue teardown. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: James Smart <james.smart@broadcom.com> Signed-off-by: Christoph Hellwig <hch@lst.de>