diff options
author | Christoph Hellwig <hch@lst.de> | 2022-05-24 14:15:30 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-05-28 06:15:27 -0600 |
commit | e2e530867245d051dc7800b0d07193b3e581f5b9 (patch) | |
tree | f59488f9897154fe555cc97d29050693b5de9217 /drivers/nvme/target/passthru.c | |
parent | 32ac5a9b8bc511edcd81f03c3e21753789475709 (diff) | |
download | lwn-e2e530867245d051dc7800b0d07193b3e581f5b9.tar.gz lwn-e2e530867245d051dc7800b0d07193b3e581f5b9.zip |
blk-mq: remove the done argument to blk_execute_rq_nowait
Let the caller set it together with the end_io_data instead of passing
a pointless argument. Note the the target code did in fact already
set it and then just overrode it again by calling blk_execute_rq_nowait.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220524121530.943123-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/target/passthru.c')
-rw-r--r-- | drivers/nvme/target/passthru.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvme/target/passthru.c b/drivers/nvme/target/passthru.c index 5247c24538eb..3cc4d6709c93 100644 --- a/drivers/nvme/target/passthru.c +++ b/drivers/nvme/target/passthru.c @@ -285,8 +285,9 @@ static void nvmet_passthru_execute_cmd(struct nvmet_req *req) req->p.rq = rq; queue_work(nvmet_wq, &req->p.work); } else { + rq->end_io = nvmet_passthru_req_done; rq->end_io_data = req; - blk_execute_rq_nowait(rq, false, nvmet_passthru_req_done); + blk_execute_rq_nowait(rq, false); } if (ns) |