linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@ozlabs.org>
To: Eric Dumazet <eric.dumazet@gmail.com>,
	Dmitry Antipov <dmitry.antipov@linaro.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Module/kthread/printk question/problem
Date: Tue, 07 Feb 2012 10:13:39 +1030	[thread overview]
Message-ID: <87bopbil3o.fsf@rustcorp.com.au> (raw)
In-Reply-To: <1328176698.2279.8.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>

On Thu, 02 Feb 2012 10:58:18 +0100, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> Le jeudi 02 février 2012 à 13:22 +0400, Dmitry Antipov a écrit :
> > On 02/02/2012 01:15 PM, Eric Dumazet wrote:
> > 
> > >
> > > Try following code :
> > >
> > 
> > I already did it myself (except redundant wake_up_process(), which
> > is performed by kthread_run() anyway).
> 
> Then its racy, unless you also changed the way your worker threads exit.

See complete_and_exit().

Thanks,
Rusty.







      reply	other threads:[~2012-02-07  0:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-01 16:09 Module/kthread/printk question/problem Dmitry Antipov
2012-02-01 16:31 ` Eric Dumazet
2012-02-01 16:35   ` Dmitry Antipov
2012-02-01 17:16     ` Eric Dumazet
2012-02-02  6:13       ` Dmitry Antipov
2012-02-02  7:45         ` Eric Dumazet
2012-02-02  9:20           ` Dmitry Antipov
2012-02-02  9:15         ` Eric Dumazet
2012-02-02  9:22           ` Dmitry Antipov
2012-02-02  9:58             ` Eric Dumazet
2012-02-06 23:43               ` Rusty Russell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bopbil3o.fsf@rustcorp.com.au \
    --to=rusty@ozlabs.org \
    --cc=dmitry.antipov@linaro.org \
    --cc=eric.dumazet@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).