提交 ad8b261d 编写于 作者: P Pavel Begunkov 提交者: Jens Axboe

io_uring: remove extra TIF_NOTIFY_SIGNAL check

io_run_task_work() accounts for TIF_NOTIFY_SIGNAL, so no need to have an
second check in io_run_task_work_sig().
Signed-off-by: NPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/52ce41a592ad904511697f432141e5690fd4b968.1656153285.git.asml.silence@gmail.comSigned-off-by: NJens Axboe <axboe@kernel.dk>
上级 3218e5d3
......@@ -2205,8 +2205,6 @@ int io_run_task_work_sig(void)
{
if (io_run_task_work())
return 1;
if (test_thread_flag(TIF_NOTIFY_SIGNAL))
return -ERESTARTSYS;
if (task_sigpending(current))
return -EINTR;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册