aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTang Junhui <[email protected]>2017-09-06 14:25:52 +0800
committerJens Axboe <[email protected]>2017-09-06 08:17:33 -0600
commitc81ffa32a214c84b08900fbc9d432187bd948eba (patch)
treeab00291fe74fbaa552bc3cd7a679492ac74430bc /tools/perf/scripts/python/export-to-sqlite.py
parent4b758df21ee7081ab41448d21d60367efaa625b3 (diff)
bcache: fix sequential large write IO bypass
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 <[email protected]> Reviewed-by: Kent Overstreet <[email protected]> Reviewed-by: Eric Wheeler <[email protected]> Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions