Skip to content

Commit 8993d44

Browse files
Chiara Bruschiaxboe
authored andcommitted
block, bfq: fix occurrences of request finish method's old name
Commit '7b9e93616399' ("blk-mq-sched: unify request finished methods") changed the old name of current bfq_finish_request method, but left it unchanged elsewhere in the code (related comments, part of function name bfq_put_rq_priv_body). This commit fixes all occurrences of the old name of this method by changing them into the current name. Fixes: 7b9e936 ("blk-mq-sched: unify request finished methods") Reviewed-by: Paolo Valente <paolo.valente@linaro.org> Signed-off-by: Federico Motta <federico@willer.it> Signed-off-by: Chiara Bruschi <bruschi.chiara@outlook.it> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent b4b6cb6 commit 8993d44

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

block/bfq-iosched.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3684,8 +3684,8 @@ static struct request *__bfq_dispatch_request(struct blk_mq_hw_ctx *hctx)
36843684
}
36853685

36863686
/*
3687-
* We exploit the put_rq_private hook to decrement
3688-
* rq_in_driver, but put_rq_private will not be
3687+
* We exploit the bfq_finish_request hook to decrement
3688+
* rq_in_driver, but bfq_finish_request will not be
36893689
* invoked on this request. So, to avoid unbalance,
36903690
* just start this request, without incrementing
36913691
* rq_in_driver. As a negative consequence,
@@ -3694,14 +3694,14 @@ static struct request *__bfq_dispatch_request(struct blk_mq_hw_ctx *hctx)
36943694
* bfq_schedule_dispatch to be invoked uselessly.
36953695
*
36963696
* As for implementing an exact solution, the
3697-
* put_request hook, if defined, is probably invoked
3698-
* also on this request. So, by exploiting this hook,
3699-
* we could 1) increment rq_in_driver here, and 2)
3700-
* decrement it in put_request. Such a solution would
3701-
* let the value of the counter be always accurate,
3702-
* but it would entail using an extra interface
3703-
* function. This cost seems higher than the benefit,
3704-
* being the frequency of non-elevator-private
3697+
* bfq_finish_request hook, if defined, is probably
3698+
* invoked also on this request. So, by exploiting
3699+
* this hook, we could 1) increment rq_in_driver here,
3700+
* and 2) decrement it in bfq_finish_request. Such a
3701+
* solution would let the value of the counter be
3702+
* always accurate, but it would entail using an extra
3703+
* interface function. This cost seems higher than the
3704+
* benefit, being the frequency of non-elevator-private
37053705
* requests very low.
37063706
*/
37073707
goto start_rq;
@@ -4558,7 +4558,7 @@ static void bfq_completed_request(struct bfq_queue *bfqq, struct bfq_data *bfqd)
45584558
bfq_schedule_dispatch(bfqd);
45594559
}
45604560

4561-
static void bfq_put_rq_priv_body(struct bfq_queue *bfqq)
4561+
static void bfq_finish_request_body(struct bfq_queue *bfqq)
45624562
{
45634563
bfqq->allocated--;
45644564

@@ -4588,7 +4588,7 @@ static void bfq_finish_request(struct request *rq)
45884588
spin_lock_irqsave(&bfqd->lock, flags);
45894589

45904590
bfq_completed_request(bfqq, bfqd);
4591-
bfq_put_rq_priv_body(bfqq);
4591+
bfq_finish_request_body(bfqq);
45924592

45934593
spin_unlock_irqrestore(&bfqd->lock, flags);
45944594
} else {
@@ -4609,7 +4609,7 @@ static void bfq_finish_request(struct request *rq)
46094609
bfqg_stats_update_io_remove(bfqq_group(bfqq),
46104610
rq->cmd_flags);
46114611
}
4612-
bfq_put_rq_priv_body(bfqq);
4612+
bfq_finish_request_body(bfqq);
46134613
}
46144614

46154615
rq->elv.priv[0] = NULL;

0 commit comments

Comments
 (0)