diff options
author | Pavel Begunkov <[email protected]> | 2020-11-25 02:19:23 +0000 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-12-09 12:04:01 -0700 |
commit | bee749b187ac57d1faf00b2ab356ff322230fce8 (patch) | |
tree | 067898aa98ab09584d1dcf9843477a3ef72c0480 /tools/perf/scripts/python/syscall-counts.py | |
parent | ac0648a56c1ff66c1cbf735075ad33a26cbc50de (diff) |
io_uring: fix files cancellation
io_uring_cancel_files()'s task check condition mistakenly got flipped.
1. There can't be a request in the inflight list without
IO_WQ_WORK_FILES, kill this check to keep the whole condition simpler.
2. Also, don't call the function for files==NULL to not do such a check,
all that staff is already handled well by its counter part,
__io_uring_cancel_task_requests().
With that just flip the task check.
Also, it iowq-cancels all request of current task there, don't forget to
set right ->files into struct io_task_cancel.
Fixes: c1973b38bf639 ("io_uring: cancel only requests of current task")
Reported-by: [email protected]
Signed-off-by: Pavel Begunkov <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions