Skip to content

Commit 792ee0f

Browse files
committed
io_uring: JOBCTL_TASK_WORK is no longer used by task_work
Remove the dead code, TWA_SIGNAL will never set JOBCTL_TASK_WORK at this point. Signed-off-by: Jens Axboe <[email protected]>
1 parent 03941cc commit 792ee0f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

fs/io_uring.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6846,13 +6846,8 @@ static int io_run_task_work_sig(void)
68466846
return 1;
68476847
if (!signal_pending(current))
68486848
return 0;
6849-
if (current->jobctl & JOBCTL_TASK_WORK) {
6850-
spin_lock_irq(&current->sighand->siglock);
6851-
current->jobctl &= ~JOBCTL_TASK_WORK;
6852-
recalc_sigpending();
6853-
spin_unlock_irq(&current->sighand->siglock);
6854-
return 1;
6855-
}
6849+
if (test_tsk_thread_flag(current, TIF_NOTIFY_SIGNAL))
6850+
return -ERESTARTSYS;
68566851
return -EINTR;
68576852
}
68586853

0 commit comments

Comments
 (0)