block, bfq: split function bfq_better_to_idle
authorPaolo Valente <paolo.valente@linaro.org>
Tue, 29 Jan 2019 11:06:30 +0000 (12:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Jan 2019 19:50:23 +0000 (12:50 -0700)
commit05c2f5c30b3ca2346a5bb7c74b0c9515d8f4fbd2
tree2f7a6d11ca0cac8206be320c716eb7e37aa82282
parent73d58118498b14e4d2f2391105459b997b586ddc
block, bfq: split function bfq_better_to_idle

This is a preparatory commit for commits that need to check only one of
the two main reasons for idling. This change should also improve the
quality of the code a little bit, by splitting a function that contains
very long, non-trivial and little related comments.

Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c