diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-10-28 18:33:23 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-09 22:03:59 +0300 |
commit | 27926b683db03be307c6905b44ecfc1f081d9d6f (patch) | |
tree | c69f639ecee342d78023fb3d0767bf54155be266 /tools/perf/scripts/python/sched-migration.py | |
parent | 0415767e7f0542b3cd1ab270c2e61e90e87aafa2 (diff) | |
download | linux-27926b683db03be307c6905b44ecfc1f081d9d6f.tar.xz |
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/sched-migration.py')
0 files changed, 0 insertions, 0 deletions