Re: [PATCH v5 05/20] kthread: Add destroy_kthread_worker()

From: Peter Zijlstra
Date: Thu Feb 25 2016 - 07:36:51 EST


On Mon, Feb 22, 2016 at 03:56:55PM +0100, Petr Mladek wrote:
> Also note that drain() correctly handles self-queuing works in compare
> with flush().

Nothing seems to prevent adding more work after drain() observes
list_empty().