Re: [PATCH] kthread_work: add cancel_kthread_work[_sync]()

2014-07-28 Thread Tejun Heo
On Sat, Jul 26, 2014 at 12:04:01PM +0800, Lai Jiangshan wrote: > When an object or a subsystem quits, we need to destroy the kthread_work > which is used by the object or the subsystem. We used to use > flush_kthread_work(). But flush_kthread_work() has not any guarantee > about the suspension of

[PATCH] kthread_work: add cancel_kthread_work[_sync]()

2014-07-25 Thread Lai Jiangshan
When an object or a subsystem quits, we need to destroy the kthread_work which is used by the object or the subsystem. We used to use flush_kthread_work(). But flush_kthread_work() has not any guarantee about the suspension of the work, this duty is pushed to the users. So we introduce the cance