diff options
| author | Oleg Nesterov <[email protected]> | 2020-06-30 15:32:54 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-06-30 18:18:08 +0000 |
| commit | e91b48162332480f5840902268108bb7fb7a44c7 (patch) | |
| tree | c7cf68d7e37016bb5a7dc479d5396fee6f7bc776 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | io_uring: fix current->mm NULL dereference on exit (diff) | |
| download | kernel-e91b48162332480f5840902268108bb7fb7a44c7.tar.gz kernel-e91b48162332480f5840902268108bb7fb7a44c7.zip | |
task_work: teach task_work_add() to do signal_wake_up()
So that the target task will exit the wait_event_interruptible-like
loop and call task_work_run() asap.
The patch turns "bool notify" into 0,TWA_RESUME,TWA_SIGNAL enum, the
new TWA_SIGNAL flag implies signal_wake_up(). However, it needs to
avoid the race with recalc_sigpending(), so the patch also adds the
new JOBCTL_TASK_WORK bit included in JOBCTL_PENDING_MASK.
TODO: once this patch is merged we need to change all current users
of task_work_add(notify = true) to use TWA_RESUME.
Cc: [email protected] # v5.7
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
