Re: [PATCH v3] kthread_worker: Prevent queuing delayed work from timer_fn when it is being canceled

2020-09-30 Thread Tejun Heo
On Sun, Sep 27, 2020 at 01:54:49PM +0800, qiang.zh...@windriver.com wrote: > From: Zqiang > > There is a small race window when a delayed work is being canceled and > the work still might be queued from the timer_fn: > > CPU0CPU1 > kthread_cancel

[PATCH v3] kthread_worker: Prevent queuing delayed work from timer_fn when it is being canceled

2020-09-26 Thread qiang.zhang
From: Zqiang There is a small race window when a delayed work is being canceled and the work still might be queued from the timer_fn: CPU0CPU1 kthread_cancel_delayed_work_sync() __kthread_cancel_work_sync() __kthread_cancel_work()