]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: remove case of redirected bic from insert_request
authorPaolo Valente <paolo.valente@linaro.org>
Tue, 29 Jan 2019 11:06:28 +0000 (12:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Jan 2019 19:50:23 +0000 (12:50 -0700)
commita9c975b15091d14e8d73b5743253d60aadd9980d
treee3c1978c6562e105273909bb02c2aa63614a2595
parent277664d3b6d793b780857022c000087c0385f770
block, bfq: remove case of redirected bic from insert_request

Before commit 31c4ec64e502 ("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>
block/bfq-iosched.c