Re: Module/kthread/printk question/problem

From: Rusty Russell
Date: Mon Feb 06 2012 - 19:30:16 EST


On Thu, 02 Feb 2012 10:58:18 +0100, Eric Dumazet <eric.dumazet@xxxxxxxxx> 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.






--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/