diff options
| author | Jens Axboe <[email protected]> | 2020-06-17 00:42:49 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-06-17 18:49:16 +0000 |
| commit | 9d8426a09195e2dcf2aa249de2aaadd792d491c7 (patch) | |
| tree | 869fea84308ffa827fcd92a85d6fbe55686213a9 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | io_uring: add memory barrier to synchronize io_kiocb's result and iopoll_comp... (diff) | |
| download | kernel-9d8426a09195e2dcf2aa249de2aaadd792d491c7.tar.gz kernel-9d8426a09195e2dcf2aa249de2aaadd792d491c7.zip | |
io_uring: acquire 'mm' for task_work for SQPOLL
If we're unlucky with timing, we could be running task_work after
having dropped the memory context in the sq thread. Since dropping
the context requires a runnable task state, we cannot reliably drop
it as part of our check-for-work loop in io_sq_thread(). Instead,
abstract out the mm acquire for the sq thread into a helper, and call
it from the async task work handler.
Cc: [email protected] # v5.7
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
