From: Hugh Dickins <hughd@google.com>
To: "Paul E. McKenney" <paul.mckenney@linaro.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH next] rcu: stop spurious warnings from synchronize_sched_expedited
Date: Fri, 17 Feb 2012 13:20:31 -0800 (PST) [thread overview]
Message-ID: <alpine.LSU.2.00.1202171318010.5994@eggly.anvils> (raw)
synchronize_sched_expedited() is spamming CONFIG_DEBUG_PREEMPT=y
users with an unintended warning from the cpu_is_offline() check:
use raw_smp_processor_id() instead of smp_processor_id() there.
Signed-off-by: Hugh Dickins <hughd@google.com>
---
kernel/rcutree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- next/kernel/rcutree.c 2012-02-17 08:02:15.680065066 -0800
+++ linux/kernel/rcutree.c 2012-02-17 10:41:18.764003566 -0800
@@ -2014,7 +2014,7 @@ void synchronize_sched_expedited(void)
/* Note that atomic_inc_return() implies full memory barrier. */
firstsnap = snap = atomic_inc_return(&sync_sched_expedited_started);
get_online_cpus();
- WARN_ON_ONCE(cpu_is_offline(smp_processor_id()));
+ WARN_ON_ONCE(cpu_is_offline(raw_smp_processor_id()));
/*
* Each pass through the following loop attempts to force a
next reply other threads:[~2012-02-17 21:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-17 21:20 Hugh Dickins [this message]
2012-02-17 22:10 ` Paul E. McKenney
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=alpine.LSU.2.00.1202171318010.5994@eggly.anvils \
--to=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paul.mckenney@linaro.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
all inboxes | Powered by JetHome®