]> 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)
commit8c302a9256c4265aa25545a9ba99b6a2a0975cbf
treee3c1978c6562e105273909bb02c2aa63614a2595
parent5911c268e196a1ae9dd765fbf2b6f3fe86ba89df
block, bfq: remove case of redirected bic from insert_request

Before commit 1adad10c1c9c ("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