diff options
author | Christoph Hellwig <hch@lst.de> | 2020-08-18 10:11:29 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-08-22 02:14:28 +0300 |
commit | 2eb81a3364eada43985efc0641490b73af78d0fa (patch) | |
tree | 2c4fd2a6ca79d75672aaded71f57c95eb6ad8470 /drivers/nvme/host/rdma.c | |
parent | c41ad98bebb8f4f0335b3c50dbb7583a6149dce4 (diff) | |
download | linux-2eb81a3364eada43985efc0641490b73af78d0fa.tar.xz |
nvme: rename and document nvme_end_request
nvme_end_request is a bit misnamed, as it wraps around the
blk_mq_complete_* API. It's semantics also are non-trivial, so give it
a more descriptive name and add a comment explaining the semantics.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/rdma.c')
-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 44c76ffbb264..4c5660201009 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -1189,7 +1189,7 @@ static void nvme_rdma_end_request(struct nvme_rdma_request *req) if (!refcount_dec_and_test(&req->ref)) return; - if (!nvme_end_request(rq, req->status, req->result)) + if (!nvme_try_complete_req(rq, req->status, req->result)) nvme_rdma_complete_rq(rq); } |