diff options
author | 2016-11-08 19:39:28 -0700 | |
---|---|---|
committer | 2016-11-08 19:39:28 -0700 | |
commit | ae5b2ec8ad5e017126cd4552220f25ce8a6b92e9 (patch) | |
tree | 8adef3f0d868cdb67dd8d4aba11edf210341ebdf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | writeback: track if we're sleeping on progress in balance_dirty_pages() (diff) | |
download | wireguard-linux-ae5b2ec8ad5e017126cd4552220f25ce8a6b92e9.tar.xz wireguard-linux-ae5b2ec8ad5e017126cd4552220f25ce8a6b92e9.zip |
block: set REQ_SYNC if we clear REQ_FUA|REQ_PREFLUSH
If we insert a flush request, we clear REQ_PREFLUSH and/or REQ_FUA,
depending on flush settings. Since op_is_sync() factors those flags
in for deciding whether this request is sync or not, we should
set REQ_SYNC to avoid screwing up this accounting.
This should be less fragile.
Reported-by: Logan Gunthorpe <logang@deltatee.com>
Fixes: b685d3d65ac ("block: treat REQ_FUA and REQ_PREFLUSH as synchronous")
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions