Commit 792ee0f6 authored by Jens Axboe's avatar Jens Axboe

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: default avatarJens Axboe <axboe@kernel.dk>
parent 03941ccf
...@@ -6846,13 +6846,8 @@ static int io_run_task_work_sig(void) ...@@ -6846,13 +6846,8 @@ static int io_run_task_work_sig(void)
return 1; return 1;
if (!signal_pending(current)) if (!signal_pending(current))
return 0; return 0;
if (current->jobctl & JOBCTL_TASK_WORK) { if (test_tsk_thread_flag(current, TIF_NOTIFY_SIGNAL))
spin_lock_irq(&current->sighand->siglock); return -ERESTARTSYS;
current->jobctl &= ~JOBCTL_TASK_WORK;
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
return 1;
}
return -EINTR; return -EINTR;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment