diff options
author | Tang Junhui <tang.junhui@zte.com.cn> | 2017-09-06 09:25:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-27 15:43:21 +0300 |
commit | 07f18ca7da27748f136dce482ec1ba2be71f0c24 (patch) | |
tree | 6eddd5cfeba0e67a57287f1187a2b3c1c9cc1b78 /lib/mpi/mpiutil.c | |
parent | bf8702bf049edbc0b2a1c900473523f582d24706 (diff) | |
download | linux-07f18ca7da27748f136dce482ec1ba2be71f0c24.tar.xz |
bcache: fix sequential large write IO bypass
commit c81ffa32a214c84b08900fbc9d432187bd948eba upstream.
Sequential write IOs were tested with bs=1M by FIO in writeback cache
mode, these IOs were expected to be bypassed, but actually they did not.
We debug the code, and find in check_should_bypass():
if (!congested &&
mode == CACHE_MODE_WRITEBACK &&
op_is_write(bio_op(bio)) &&
(bio->bi_opf & REQ_SYNC))
goto rescale
that means, If in writeback mode, a write IO with REQ_SYNC flag will not
be bypassed though it is a sequential large IO, It's not a correct thing
to do actually, so this patch remove these codes.
Signed-off-by: tang.junhui <tang.junhui@zte.com.cn>
Reviewed-by: Kent Overstreet <kent.overstreet@gmail.com>
Reviewed-by: Eric Wheeler <bcache@linux.ewheeler.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions