From: Andrew Morton <akpm@linux-foundation.org>
To: lenb@kernel.org, linux-acpi@vger.kernel.org, tglx@linutronix.de,
francois.valenduc@tvcablenet.be, ming.m.lin@intel.com
Subject: Re: [patch for 2.6.35 1/1] acpi: fix bogus preemption logic
Date: Wed, 11 Aug 2010 11:13:39 -0700 [thread overview]
Message-ID: <20100811111339.513c335d.akpm@linux-foundation.org> (raw)
In-Reply-To: <20100802125357.433f5845.akpm@linux-foundation.org>
On Mon, 2 Aug 2010 12:53:57 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:
> On Tue, 20 Jul 2010 15:16:51 -0700
> akpm@linux-foundation.org wrote:
>
> > From: Thomas Gleixner <tglx@linutronix.de>
> >
> > The ACPI_PREEMPTION_POINT() logic was introduced in commit 8bd108d
> > (ACPICA: add preemption point after each opcode parse). The follow up
> > commits abe1dfab6, 138d15692, c084ca70 tried to fix the preemption logic
> > back and forth, but nobody noticed that the usage of
> > in_atomic_preempt_off() in that context is wrong.
> >
> > The check which guards the call of cond_resched() is:
> >
> > if (!in_atomic_preempt_off() && !irqs_disabled())
> >
> > in_atomic_preempt_off() is not intended for general use as the comment
> > above the macro definition clearly says:
> >
> > * Check whether we were atomic before we did preempt_disable():
> > * (used by the scheduler, *after* releasing the kernel lock)
> >
> > On a CONFIG_PREEMPT=n kernel the usage of in_atomic_preempt_off() works by
> > accident, but with CONFIG_PREEMPT=y it's just broken.
> >
> > The whole purpose of the ACPI_PREEMPTION_POINT() is to reduce the latency
> > on a CONFIG_PREEMPT=n kernel, so make ACPI_PREEMPTION_POINT() depend on
> > CONFIG_PREEMPT=n and remove the in_atomic_preempt_off() check.
> >
> > Addresses https://bugzilla.kernel.org/show_bug.cgi?id=16210
> >
>
> Why was this simply ignored?
>
> I shall now add a cc:stable to my copy of the patch. Please don't
> merge the old version which is missing that cc.
And now people are reporting the regression in 2.6.35
(https://bugzilla.kernel.org/show_bug.cgi?id=16564).
I'll merge the patch.
prev parent reply other threads:[~2010-08-11 18:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-20 22:16 [patch for 2.6.35 1/1] acpi: fix bogus preemption logic akpm
2010-08-02 19:53 ` Andrew Morton
2010-08-11 18:13 ` Andrew Morton [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=20100811111339.513c335d.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=francois.valenduc@tvcablenet.be \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=ming.m.lin@intel.com \
--cc=tglx@linutronix.de \
/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.