public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Oleg Nesterov <oleg@redhat.com>
Cc: Roland McGrath <roland@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ptrace: cleanup ptrace_init_task()->ptrace_link() path
Date: Fri, 30 Oct 2009 18:56:20 -0700	[thread overview]
Message-ID: <20091030185620.b8e0fc8b.akpm@linux-foundation.org> (raw)
In-Reply-To: <20091031005507.GA4005@redhat.com>

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"?


  reply	other threads:[~2009-10-31  1:56 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 [this message]
2009-10-31  2:24       ` Oleg Nesterov

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=20091030185620.b8e0fc8b.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox