public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jun Sun <jsun@mvista.com>
To: kuznet@ms2.inr.ac.ru
Cc: linux-kernel@vger.kernel.org
Subject: Re: [Fwd: lost need_resched flag re-introduced?]
Date: Thu, 07 Dec 2000 10:51:40 -0800	[thread overview]
Message-ID: <3A2FDC3C.C2DA705D@mvista.com> (raw)
In-Reply-To: <200012071721.UAA30863@ms2.inr.ac.ru>

kuznet@ms2.inr.ac.ru wrote:
> 
> Hello!
> 
> > > A while back I reported the lost need_resched flag bug ( it happens if
> > > need_resched is set right before switch_to() is called).  Later on a one-line
> > > fix is added to __schedule_tail().
> > >
> > >         current->need_resched |= prev->need_resched;
> > >
> > > I looked at the latest kernel and found this one is gone.  Is the lost
> > > need_resched problem taken care of in some other way?  Or is it re-introduced?
> 
> It is removed not only because it was wrong (which you have found too),
> but because it was useless even if copied correctly.
> 
> current->need_resched is not changed in interrupt context outside
> runqueue lock except for scheduler timer, where copying results
> in nothing but spurious reschedule.
> 
> Alexey

Alexey,

I think wake_up_process() is called in interrupt routine quite often and it
will set need_resched flag (through reschedule_idle()).  ???

I did several run time tests and confirmed the missing need_resched flag was
happening.  Ether some new code takes care of it.  Or it is still there.

Jun
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-12-07 19:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-07  1:13 [Fwd: lost need_resched flag re-introduced?] Jun Sun
2000-12-07 17:21 ` kuznet
2000-12-07 18:51   ` Jun Sun [this message]
2000-12-07 18:56     ` kuznet

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=3A2FDC3C.C2DA705D@mvista.com \
    --to=jsun@mvista.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.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