diff options
| author | Pavel Begunkov <[email protected]> | 2021-01-11 04:00:31 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-01-11 14:39:54 +0000 |
| commit | 621fadc22365f3cf307bcd9048e3372e9ee9cdcc (patch) | |
| tree | 94756a0e03f262cce362d1d165660fb5c01990a4 /scripts/clang-tools/gen_compile_commands.py | |
| parent | io_uring: drop mm and files after task_work_run (diff) | |
| download | kernel-621fadc22365f3cf307bcd9048e3372e9ee9cdcc.tar.gz kernel-621fadc22365f3cf307bcd9048e3372e9ee9cdcc.zip | |
io_uring: don't take files/mm for a dead task
In rare cases a task may be exiting while io_ring_exit_work() trying to
cancel/wait its requests. It's ok for __io_sq_thread_acquire_mm()
because of SQPOLL check, but is not for __io_sq_thread_acquire_files().
Play safe and fail for both of them.
Cc: [email protected] # 5.5+
Signed-off-by: Pavel Begunkov <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
