We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03941cc commit 792ee0fCopy full SHA for 792ee0f
fs/io_uring.c
@@ -6846,13 +6846,8 @@ static int io_run_task_work_sig(void)
6846
return 1;
6847
if (!signal_pending(current))
6848
return 0;
6849
- if (current->jobctl & JOBCTL_TASK_WORK) {
6850
- spin_lock_irq(¤t->sighand->siglock);
6851
- current->jobctl &= ~JOBCTL_TASK_WORK;
6852
- recalc_sigpending();
6853
- spin_unlock_irq(¤t->sighand->siglock);
6854
- return 1;
6855
- }
+ if (test_tsk_thread_flag(current, TIF_NOTIFY_SIGNAL))
+ return -ERESTARTSYS;
6856
return -EINTR;
6857
}
6858
0 commit comments