From: Oleg Nesterov <oleg@tv-sign.ru>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Vitaly Mayatskikh <vmayatsk@redhat.com>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Pavel Emelianov <xemul@openvz.org>
Subject: Re: [PATCH 2.6.21] Return available first timeslice to the creator, not parent
Date: Thu, 30 Aug 2007 14:09:39 +0400 [thread overview]
Message-ID: <20070830100939.GA372@tv-sign.ru> (raw)
In-Reply-To: <1188467816.6112.36.camel@twins>
On 08/30, Peter Zijlstra wrote:
>
> On Thu, 2007-08-30 at 13:49 +0400, Oleg Nesterov wrote:
> >
> > sched_exit() was removed in 2.6.23-rc.
> >
> > If you are going to re-introduce this logic, please don't do sched_exit()
> > from release_task(). It was done this way just because we can't access
> > ->parent after release_task(). But release_task() is called either too
> > early, or too late for timeslice accounting, depending on ->exit_signal == -1.
> >
> > I'd suggest to do this in do_exit(), before the last schedule(). Without
> > write_unlock_irq() the code above needs a couple of rcu_read_lock()'s.
> >
> > I am not sure Ingo will like this change though...
>
> This is not intended as re-introduction of the feature, this stems from
> fixing this issue in older (read distro) kernels.
Ah, good, sorry for noise then.
In that case I don't think it makes sense to move sched_exit() to do_exit(),
of course. This doesn't look suitable for the -stable tree.
Oleg.
prev parent reply other threads:[~2007-08-30 10:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-30 7:50 [PATCH 2.6.21] Return available first timeslice to the creator, not parent Vitaly Mayatskikh
2007-08-30 8:37 ` Michal Schmidt
2007-08-30 9:14 ` Peter Zijlstra
2007-08-30 9:10 ` Peter Zijlstra
2007-08-30 9:48 ` Pavel Emelyanov
2007-08-30 9:49 ` Oleg Nesterov
2007-08-30 9:56 ` Peter Zijlstra
2007-08-30 10:09 ` 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=20070830100939.GA372@tv-sign.ru \
--to=oleg@tv-sign.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=vmayatsk@redhat.com \
--cc=xemul@openvz.org \
/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