diff options
author | Christoph Hellwig <hch@lst.de> | 2017-06-16 18:15:20 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-18 18:08:55 +0200 |
commit | ea511e3c28c892f689173c91662437c4ddb2ab38 (patch) | |
tree | 0b473ed37ae7f9baed22b4d2f89731bf8c35e4ee /block/blk-mq.c | |
parent | blk-mq: move blk_mq_sched_{get,put}_request to blk-mq.c (diff) | |
download | linux-ea511e3c28c892f689173c91662437c4ddb2ab38.tar.xz linux-ea511e3c28c892f689173c91662437c4ddb2ab38.zip |
blk-mq: remove blk_mq_sched_{get,put}_rq_priv
Having these as separate helpers in a header really does not help
readability, or my chances to refactor this code sanely.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 694cbd698507..1a45c287db64 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -438,7 +438,8 @@ void blk_mq_free_request(struct request *rq) struct elevator_queue *e = q->elevator; if (rq->rq_flags & RQF_ELVPRIV) { - blk_mq_sched_put_rq_priv(rq->q, rq); + if (e && e->type->ops.mq.put_rq_priv) + e->type->ops.mq.put_rq_priv(q, rq); if (rq->elv.icq) { put_io_context(rq->elv.icq->ioc); rq->elv.icq = NULL; |