diff options
author | Christoph Hellwig <hch@lst.de> | 2017-06-16 12:15:21 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-18 12:08:55 -0400 |
commit | 7b9e93616399638521aafd1f01dfcf474c736393 (patch) | |
tree | b135a4bc68b8c8a8325ae8a0634686f0ddb7f0f8 /block/bfq-iosched.c | |
parent | ea511e3c28c892f689173c91662437c4ddb2ab38 (diff) |
blk-mq-sched: unify request finished methods
No need to have two different callouts of bfq vs kyber.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.c')
-rw-r--r-- | block/bfq-iosched.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index ed93da2462ab..4f69e39c2f89 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c | |||
@@ -4290,7 +4290,7 @@ static void bfq_put_rq_priv_body(struct bfq_queue *bfqq) | |||
4290 | bfq_put_queue(bfqq); | 4290 | bfq_put_queue(bfqq); |
4291 | } | 4291 | } |
4292 | 4292 | ||
4293 | static void bfq_put_rq_private(struct request_queue *q, struct request *rq) | 4293 | static void bfq_finish_request(struct request *rq) |
4294 | { | 4294 | { |
4295 | struct bfq_queue *bfqq = RQ_BFQQ(rq); | 4295 | struct bfq_queue *bfqq = RQ_BFQQ(rq); |
4296 | struct bfq_data *bfqd = bfqq->bfqd; | 4296 | struct bfq_data *bfqd = bfqq->bfqd; |
@@ -4324,7 +4324,7 @@ static void bfq_put_rq_private(struct request_queue *q, struct request *rq) | |||
4324 | */ | 4324 | */ |
4325 | 4325 | ||
4326 | if (!RB_EMPTY_NODE(&rq->rb_node)) | 4326 | if (!RB_EMPTY_NODE(&rq->rb_node)) |
4327 | bfq_remove_request(q, rq); | 4327 | bfq_remove_request(rq->q, rq); |
4328 | bfq_put_rq_priv_body(bfqq); | 4328 | bfq_put_rq_priv_body(bfqq); |
4329 | } | 4329 | } |
4330 | 4330 | ||
@@ -4951,7 +4951,7 @@ static struct elv_fs_entry bfq_attrs[] = { | |||
4951 | static struct elevator_type iosched_bfq_mq = { | 4951 | static struct elevator_type iosched_bfq_mq = { |
4952 | .ops.mq = { | 4952 | .ops.mq = { |
4953 | .get_rq_priv = bfq_get_rq_private, | 4953 | .get_rq_priv = bfq_get_rq_private, |
4954 | .put_rq_priv = bfq_put_rq_private, | 4954 | .finish_request = bfq_finish_request, |
4955 | .exit_icq = bfq_exit_icq, | 4955 | .exit_icq = bfq_exit_icq, |
4956 | .insert_requests = bfq_insert_requests, | 4956 | .insert_requests = bfq_insert_requests, |
4957 | .dispatch_request = bfq_dispatch_request, | 4957 | .dispatch_request = bfq_dispatch_request, |