diff options
author | Christoph Hellwig <hch@lst.de> | 2022-12-14 10:13:16 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-02-01 14:21:59 +0100 |
commit | 62281b9ed671bee71737b42cb72f3c140ac2aef1 (patch) | |
tree | 87de3e33e758c27b506cb5cd8953e2c955d120a5 /drivers/nvme/target | |
parent | 7846c1b5a5db8bb8475603069df7c7af034fd081 (diff) | |
download | linux-stable-62281b9ed671bee71737b42cb72f3c140ac2aef1.tar.gz linux-stable-62281b9ed671bee71737b42cb72f3c140ac2aef1.tar.bz2 linux-stable-62281b9ed671bee71737b42cb72f3c140ac2aef1.zip |
nvme: remove nvme_execute_passthru_rq
After moving the nvme_passthru_end call to the callers of
nvme_execute_passthru_rq, this function has become quite pointless,
so remove it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r-- | drivers/nvme/target/passthru.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/nvme/target/passthru.c b/drivers/nvme/target/passthru.c index adc0958755d6..511c980d538d 100644 --- a/drivers/nvme/target/passthru.c +++ b/drivers/nvme/target/passthru.c @@ -216,11 +216,12 @@ static void nvmet_passthru_execute_cmd_work(struct work_struct *w) struct nvmet_req *req = container_of(w, struct nvmet_req, p.work); struct request *rq = req->p.rq; struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl; + struct nvme_ns *ns = rq->q->queuedata; u32 effects; int status; - status = nvme_execute_passthru_rq(rq, &effects); - + effects = nvme_passthru_start(ctrl, ns, req->cmd->common.opcode); + status = nvme_execute_rq(rq, false); if (status == NVME_SC_SUCCESS && req->cmd->common.opcode == nvme_admin_identify) { switch (req->cmd->identify.cns) { |