Skip to content

Commit 03e565e

Browse files
Algodev-githubaxboe
authored andcommitted
block, bfq: remove case of redirected bic from insert_request
Before commit 18e5a57 ("block, bfq: postpone rq preparation to insert or merge"), the destination queue for a request was chosen by a different hook than the one that then inserted the request. So, between the execution of the two hooks, the bic of the process generating the request could happen to be redirected to a different bfq_queue. As a consequence, the destination bfq_queue stored in the request could be wrong. Such an event does not need to ba handled any longer. Signed-off-by: Paolo Valente <paolo.valente@linaro.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent f3218ad commit 03e565e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

block/bfq-iosched.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4633,8 +4633,6 @@ static bool __bfq_insert_request(struct bfq_data *bfqd, struct request *rq)
46334633
bool waiting, idle_timer_disabled = false;
46344634

46354635
if (new_bfqq) {
4636-
if (bic_to_bfqq(RQ_BIC(rq), 1) != bfqq)
4637-
new_bfqq = bic_to_bfqq(RQ_BIC(rq), 1);
46384636
/*
46394637
* Release the request's reference to the old bfqq
46404638
* and make sure one is taken to the shared queue.

0 commit comments

Comments
 (0)