]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
nvme-rdma: fix nvme_rdma_queue_is_ready
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Jan 2017 11:29:02 +0000 (14:29 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2017 16:20:39 +0000 (17:20 +0100)
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>
drivers/nvme/host/rdma.c

index f587af345889eb1b32a1f4f87dbe0c9a3a30ae42..34e5648577160c044faed4babb3c9c2598e63754 100644 (file)
@@ -1422,7 +1422,7 @@ static inline bool nvme_rdma_queue_is_ready(struct nvme_rdma_queue *queue,
                struct request *rq)
 {
        if (unlikely(!test_bit(NVME_RDMA_Q_LIVE, &queue->flags))) {
-               struct nvme_command *cmd = (struct nvme_command *)rq->cmd;
+               struct nvme_command *cmd = nvme_req(rq)->cmd;
 
                if (rq->cmd_type != REQ_TYPE_DRV_PRIV ||
                    cmd->common.opcode != nvme_fabrics_command ||