diff options
author | Pavel Begunkov <[email protected]> | 2021-08-10 17:53:55 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-08-23 13:10:32 -0600 |
commit | 6294f3686b4d77771ab8b161304ada546e71d36a (patch) | |
tree | 6b9db8e8d47c9179dc064e5c7301a9e542b9c521 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 5d70904367b45b74dab9da5c023b6629f511e48f (diff) |
io_uring: clean up tctx_task_work()
After recent fixes, tctx_task_work() always does proper spinlocking
before looking into ->task_list, so now we don't need atomics for
->task_state, replace it with non-atomic task_running using the critical
section.
Tide it up, combine two separate block with spinlocking, and always try
to splice in there, so we do less locking when new requests are arriving
during the function execution.
Signed-off-by: Pavel Begunkov <[email protected]>
[axboe: fix missing ->task_running reset on task_work_add() failure]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions