diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-02-24 11:30:16 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-03 00:04:24 +0300 |
commit | 5ea62161167eb8297249d3f4dc63741016f01413 (patch) | |
tree | e5186a98a5ae86de4b79d59e13f366e3e0f48462 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e441d1cf20e1b9fc443e6130488d41e1941aae82 (diff) | |
download | linux-5ea62161167eb8297249d3f4dc63741016f01413.tar.xz |
io_uring: don't call work.func from sync ctx
Many operations define custom work.func before getting into an io-wq.
There are several points against:
- it calls io_wq_assign_next() from outside io-wq, that may be confusing
- sync context would go unnecessary through io_req_cancelled()
- prototypes are quite different, so work!=old_work looks strange
- makes async/sync responsibilities fuzzy
- adds extra overhead
Don't call generic path and io-wq handlers from each other, but use
helpers instead
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
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