From: Oleg Nesterov <oleg@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Roland McGrath <roland@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ptrace: cleanup ptrace_init_task()->ptrace_link() path
Date: Sat, 31 Oct 2009 03:24:02 +0100 [thread overview]
Message-ID: <20091031022402.GA9883@redhat.com> (raw)
In-Reply-To: <20091030185620.b8e0fc8b.akpm@linux-foundation.org>
On 10/30, Andrew Morton wrote:
>
> On Sat, 31 Oct 2009 01:55:07 +0100 Oleg Nesterov <oleg@redhat.com> wrote:
>
> > On 10/30, Andrew Morton wrote:
> > >
> > > On Fri, 30 Oct 2009 00:56:56 +0100
> > > Oleg Nesterov <oleg@redhat.com> wrote:
> > >
> > > > ptrace
> > >
> > > Speaking of which, I'm still sitting on
> > > do_wait-optimization-do-not-place-sub-threads-on-task_struct-children-list.patch.
> >
> > (this patch has nothing to do with ptrace)
> >
> > > Should I drop it?
> >
> > Why? I think this is good optimization and imho cleanup.
> >
> > There is no point to have sub-thread in ->children list and this
> > slows down do_wait() if a child has a lot of threads, it has to
> > iterate over all sub-threads just to filter them out.
> >
>
> On 17 Sep you said:
>
> : Yes, risky... God knows who can do list_for_each(->children) and expect to
> : find the sub-threads. But this is obviously good optimization/simplification.
> :
> : It is just ugly to place sub-threads on ->children list, this buys nothing
> : but slown downs do_wait(). (this was needed, afaics, to handle ptraced but
> : not re-parented threads a long ago).
>
> so that's why I didn't merge it into 2.6.32. Is the patch still
> considered "risky"?
I hope not, it didn't cause any problems during 3 months in -mm.
Oleg.
prev parent reply other threads:[~2009-10-31 2:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 23:56 [PATCH] ptrace: cleanup ptrace_init_task()->ptrace_link() path Oleg Nesterov
2009-10-30 22:50 ` Andrew Morton
2009-10-31 0:55 ` Oleg Nesterov
2009-10-31 1:56 ` Andrew Morton
2009-10-31 2:24 ` Oleg Nesterov [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=20091031022402.GA9883@redhat.com \
--to=oleg@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.