nvme-fabrics: fix crash for no IO queues
PATCH 1/1 nvme-fabrics: fix crash for no IO queues
A crash happens when set feature(NVME_FEAT_NUM_QUEUES) timeout in nvme over rdma(roce) reconnection, the reason is use the queue which is not alloced.
If queue is not live, should not allow queue request.
Signed-off-by Chao Leng <[email protected]>
--- drivers/nvme/host/fabrics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/fabrics.h +1 -1
@@ -189,7 +189,7 @@ static inline bool nvmf_check_ready(struct nvme_ctrl *ctrl, struct request *rq, {if (likely (ctrl->state ==NVME_CTRL_LIVE || ctrl->state ==NVME_CTRL_DELETING )) -return true; +return queue_live;return __nvmf_check_ready (ctrl, rq, queue_live); }
Signature · 7 lines
2.16.4 _______________________________________________ Linux-nvme mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-nvme