diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-03 06:29:02 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-01-11 11:20:39 -0500 |
commit | 1392370ee7de8aa3f69936f55bea6bfcc9879c59 (patch) | |
tree | 6682322b106a94ecb30cfdc43876ffbb4dc91073 | |
parent | 6bf6b0aa3da84a3d9126919a94c49c0fb7ee2fb3 (diff) |
nvme-rdma: fix nvme_rdma_queue_is_ready
Now that we don't abuse the cmd field in struct request for nvme command
passthrough this function needs to be converted to the proper accessor
as well.
Fixes: d49187e97e ("nvme: introduce struct nvme_request")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
-rw-r--r-- | drivers/nvme/host/rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index f587af345889..34e564857716 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c | |||
@@ -1422,7 +1422,7 @@ static inline bool nvme_rdma_queue_is_ready(struct nvme_rdma_queue *queue, | |||
1422 | struct request *rq) | 1422 | struct request *rq) |
1423 | { | 1423 | { |
1424 | if (unlikely(!test_bit(NVME_RDMA_Q_LIVE, &queue->flags))) { | 1424 | if (unlikely(!test_bit(NVME_RDMA_Q_LIVE, &queue->flags))) { |
1425 | struct nvme_command *cmd = (struct nvme_command *)rq->cmd; | 1425 | struct nvme_command *cmd = nvme_req(rq)->cmd; |
1426 | 1426 | ||
1427 | if (rq->cmd_type != REQ_TYPE_DRV_PRIV || | 1427 | if (rq->cmd_type != REQ_TYPE_DRV_PRIV || |
1428 | cmd->common.opcode != nvme_fabrics_command || | 1428 | cmd->common.opcode != nvme_fabrics_command || |