diff options
author | Jan Kara <[email protected]> | 2017-05-02 17:03:50 +0200 |
---|---|---|
committer | David Sterba <[email protected]> | 2017-05-16 15:42:01 +0200 |
commit | 8d91012528b3c95c159e6b6779e367421df9cbb5 (patch) | |
tree | 7a10ebc80a4d62384bdf0e72e2d522f18aba1c63 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 4751832da990a927c37526ae67b9226ea01eb99e (diff) |
btrfs: Make flush bios explicitely sync
Commit b685d3d65ac7 "block: treat REQ_FUA and REQ_PREFLUSH as
synchronous" removed REQ_SYNC flag from WRITE_{FUA|PREFLUSH|...}
definitions. generic_make_request_checks() however strips REQ_FUA and
REQ_PREFLUSH flags from a bio when the storage doesn't report volatile
write cache and thus write effectively becomes asynchronous which can
lead to performance regressions
Fix the problem by making sure all bios which are synchronous are
properly marked with REQ_SYNC.
CC: David Sterba <[email protected]>
CC: [email protected]
Fixes: b685d3d65ac791406e0dfd8779cc9b3707fea5a3
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Liu Bo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions