aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/nvmet.h
diff options
context:
space:
mode:
authorMax Gurtovoy <maxg@mellanox.com>2019-04-08 18:39:59 +0300
committerChristoph Hellwig <hch@lst.de>2019-04-25 16:41:26 +0200
commitfc6c9730725d5cc57c851d0e261a5682bba913a7 (patch)
tree92b0533bc4988db7bf0097d6744e07d0a19b88c0 /drivers/nvme/target/nvmet.h
parentnvmet-rdma: remove p2p_client initialization from fast-path (diff)
downloadlinux-dev-fc6c9730725d5cc57c851d0e261a5682bba913a7.tar.xz
linux-dev-fc6c9730725d5cc57c851d0e261a5682bba913a7.zip
nvmet: rename nvme_completion instances from rsp to cqe
Use NVMe namings for improving code readability. Signed-off-by: Max Gurtovoy <maxg@mellanox.com> Reviewed-by : Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r--drivers/nvme/target/nvmet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h
index 1653d19b187f..c25d88fc9dec 100644
--- a/drivers/nvme/target/nvmet.h
+++ b/drivers/nvme/target/nvmet.h
@@ -284,7 +284,7 @@ struct nvmet_fabrics_ops {
struct nvmet_req {
struct nvme_command *cmd;
- struct nvme_completion *rsp;
+ struct nvme_completion *cqe;
struct nvmet_sq *sq;
struct nvmet_cq *cq;
struct nvmet_ns *ns;
@@ -322,7 +322,7 @@ extern struct workqueue_struct *buffered_io_wq;
static inline void nvmet_set_result(struct nvmet_req *req, u32 result)
{
- req->rsp->result.u32 = cpu_to_le32(result);
+ req->cqe->result.u32 = cpu_to_le32(result);
}
/*