aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-10-28 09:33:23 -0600
committerJens Axboe <axboe@kernel.dk>2020-12-09 12:03:59 -0700
commit27926b683db03be307c6905b44ecfc1f081d9d6f (patch)
treec69f639ecee342d78023fb3d0767bf54155be266 /tools/perf/scripts/python/exported-sql-viewer.py
parent0415767e7f0542b3cd1ab270c2e61e90e87aafa2 (diff)
downloadlinux-27926b683db03be307c6905b44ecfc1f081d9d6f.tar.gz
linux-27926b683db03be307c6905b44ecfc1f081d9d6f.tar.bz2
linux-27926b683db03be307c6905b44ecfc1f081d9d6f.zip
io_uring: only plug when appropriate
We unconditionally call blk_start_plug() when starting the IO submission, but we only really should do that if we have more than 1 request to submit AND we're potentially dealing with block based storage underneath. For any other type of request, it's just a waste of time to do so. Add a ->plug bit to io_op_def and set it for read/write requests. We could make this more precise and check the file itself as well, but it doesn't matter that much and would quickly become more expensive. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions