15:28
收件人: Zhang, Qiang
抄送: ben.do...@codethink.co.uk; bfie...@redhat.com; c...@rock-chips.com;
pet...@infradead.org; t...@kernel.org; linux-kernel@vger.kernel.org
主题: Re: [PATCH] kthread: Don't cancel a work that is being cancelled
On Thu 2020-07-02 12:43:24, qiang.zh...@windriver.com wrote:
>
On Thu 2020-07-02 12:43:24, qiang.zh...@windriver.com wrote:
> From: Zhang Qiang
>
> When canceling a work, if it is found that the work is in
> the cancelling state, we should directly exit the cancelled
> operation.
No, the function guarantees that the work is not longer running
when it return
From: Zhang Qiang
When canceling a work, if it is found that the work is in
the cancelling state, we should directly exit the cancelled
operation.
Signed-off-by: Zhang Qiang
---
kernel/kthread.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/kthread.c b/kernel/kthread.c
index bf
From: Zhang Qiang
When canceling a work, if it is found that the work is in
the cancelling state, we should directly exit the cancelled
operation.
Signed-off-by: Zhang Qiang
---
kernel/kthread.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/kthread.c b/kernel/kthread.c
index bf
4 matches
Mail list logo