Re: [PATCH 1/3] kthread: implement probe_kthread_data()

From: Oleg Nesterov
Date: Sat Mar 30 2013 - 15:15:49 EST


On 03/30, Tejun Heo wrote:
>
> On Sat, Mar 30, 2013 at 10:00 AM, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
>
> > But I guess I missed the fact that this helper should be safe even this
> > @task can be the a vfork'ed user-space process, yes?
> >
>
> Yeap, we really don't know what to expect.

OK,

> > Or we can add to_live_kthread_safe() which checks "parent == kthreadd_task"
> > instead.
>
> But that would be more fragile than probe_read. I mean, this thing will be
> called on BUGs and oopses.

OK, I agree.

Sorry for noise and thanks for your explanations, I really missed
the intent.

Oleg.

--
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/