OSDN Git Service

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

Before commit 18e5a57d7987 ("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