X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Ftask_work.c;h=c59e1a49bc406c7a2cb0e05a36053dd3ad13a9ba;hb=a7f1de9b6066cc62e0142302d8021731d56b9559;hp=1698fbe6f0e134ac2a2ab3e9357b44af99c71f83;hpb=efc1fd601a751d39a189c3ebe14008aea69a5e37;p=linux-2.6-microblaze.git diff --git a/kernel/task_work.c b/kernel/task_work.c index 1698fbe6f0e1..c59e1a49bc40 100644 --- a/kernel/task_work.c +++ b/kernel/task_work.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include #include -#include +#include static struct callback_head work_exited; /* all we need is ->next == NULL */ @@ -78,7 +78,7 @@ task_work_cancel_match(struct task_struct *task, struct callback_head *work; unsigned long flags; - if (likely(!task->task_works)) + if (likely(!task_work_pending(task))) return NULL; /* * If cmpxchg() fails we continue without updating pprev.