diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-25 10:05:07 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-29 15:50:52 +0300 |
commit | 0bf6d96cb8294094ce1e44cbe8cf65b0899d0a3a (patch) | |
tree | 070d0c6fdea2351b47830dc0fa5919479344c6ca /drivers/block/paride | |
parent | 4845012eb5b4e56cadb5f484cb55dd4fd9d1df80 (diff) | |
download | linux-0bf6d96cb8294094ce1e44cbe8cf65b0899d0a3a.tar.xz |
block: remove blk_{get,put}_request
These are now pointless wrappers around blk_mq_{alloc,free}_request,
so remove them.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20211025070517.1548584-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/paride')
-rw-r--r-- | drivers/block/paride/pd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/paride/pd.c b/drivers/block/paride/pd.c index 675327df6aff..9cd0bd509b88 100644 --- a/drivers/block/paride/pd.c +++ b/drivers/block/paride/pd.c @@ -775,14 +775,14 @@ static int pd_special_command(struct pd_unit *disk, struct request *rq; struct pd_req *req; - rq = blk_get_request(disk->gd->queue, REQ_OP_DRV_IN, 0); + rq = blk_mq_alloc_request(disk->gd->queue, REQ_OP_DRV_IN, 0); if (IS_ERR(rq)) return PTR_ERR(rq); req = blk_mq_rq_to_pdu(rq); req->func = func; blk_execute_rq(disk->gd, rq, 0); - blk_put_request(rq); + blk_mq_free_request(rq); return 0; } |