回复: [PATCH] kthread: Don't cancel a work that is being cancelled

2020-07-03 Thread Zhang, Qiang
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: >

Re: [PATCH] kthread: Don't cancel a work that is being cancelled

2020-07-03 Thread Petr Mladek
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

[PATCH] kthread: Don't cancel a work that is being cancelled

2020-07-02 Thread qiang.zhang
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

[PATCH] kthread: Don't cancel a work that is being cancelled

2020-07-02 Thread qiang.zhang
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