[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20130330191222.GA31531@redhat.com>
Date: Sat, 30 Mar 2013 20:12:22 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: Tejun Heo <tj@...nel.org>
Cc: Jens Axboe <axboe@...nel.dk>,
Andrew Morton <akpm@...ux-foundation.org>,
Jan Kara <jack@...e.cz>, david@...morbit.com,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/3] kthread: implement probe_kthread_data()
On 03/30, Tejun Heo wrote:
>
> On Sat, Mar 30, 2013 at 10:00 AM, Oleg Nesterov <oleg@...hat.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists