Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1426984

Re: [PATCH v9 07/12] kthread: Add kthread_destroy_worker()

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v9 07/12] kthread: Add kthread_destroy_worker()
Date 2016-06-20 22:00 +0200
Message-ID <rMdwu-44L-45@gated-at.bofh.it> (permalink)
References <rKDv3-7Hj-3@gated-at.bofh.it> <rKDv4-7Hj-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jun 16, 2016 at 01:17:26PM +0200, Petr Mladek wrote:
> The current kthread worker users call flush() and stop() explicitly.
> This function drains the worker, stops it, and frees the kthread_worker
> struct in one call.
> 
> It is supposed to be used together with kthread_create_worker*() that
> allocates struct kthread_worker.
> 
> Also note that drain() correctly handles self-queuing works in compare
> with flush().
> 
> Signed-off-by: Petr Mladek <pmladek@suse.com>

Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

-- 
tejun

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v9 07/12] kthread: Add kthread_destroy_worker() Petr Mladek <pmladek@suse.com> - 2016-06-16 13:20 +0200
  Re: [PATCH v9 07/12] kthread: Add kthread_destroy_worker() Tejun Heo <tj@kernel.org> - 2016-06-20 22:00 +0200

csiph-web