From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Noah Watkins <noahwatkins@gmail.com>
Cc: Sven-Thorsten Dietrich <sven@thebigcorporation.com>,
LKML <linux-kernel@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
RT <linux-rt-users@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [BUG RT] 2.6.25.8-rt7 on 8-way
Date: Sun, 29 Jun 2008 16:28:44 -0700 [thread overview]
Message-ID: <20080629232844.GB8494@linux.vnet.ibm.com> (raw)
In-Reply-To: <7618ba960806291618r7a95908aq459d1bbb63a175cc@mail.gmail.com>
On Sun, Jun 29, 2008 at 06:18:46PM -0500, Noah Watkins wrote:
> That eliminated the messages.
Does the patch below allow you to re-enable CONFIG_PREEMPT_RCU_BOOST
without getting these messages? (I sent this out previously, but
am to lazy to search for the original posting.)
Thanx, Paul
> - Noah
>
> On Sun, Jun 29, 2008 at 5:23 PM, Sven-Thorsten Dietrich
> <sven@thebigcorporation.com> wrote:
> > On Sun, 2008-06-29 at 16:32 -0500, Noah Watkins wrote:
> >> My kernel is very, very noisy with the following bug:
> >>
> >> - Full dmesg below
> >> - Please CC me
> >>
> >
> > I found this as well (adding Paul).
> >
> > If you disable CONFIG_PREEMPT_RCU_BOOST, does it go away?
> >
> > Regards,
> > Sven
Signed-off-by: Paul E. McKenney <paulmck@us.ibm.com>
---
diff -urpNa -X dontdiff linux-2.6.25.8-rt7/kernel/rcupreempt-boost.c linux-2.6.25.8-rt7-preemptfix/kernel/rcupreempt-boost.c
--- linux-2.6.25.8-rt7/kernel/rcupreempt-boost.c 2008-06-24 14:14:52.000000000 -0700
+++ linux-2.6.25.8-rt7-preemptfix/kernel/rcupreempt-boost.c 2008-06-24 14:38:59.000000000 -0700
@@ -205,11 +205,23 @@ RCU_BOOST_TRACE_FUNC_DECL(boost_readers)
RCU_BOOST_TRACE_FUNC_DECL(try_unboost_readers)
RCU_BOOST_TRACE_FUNC_DECL(unboost_readers)
RCU_BOOST_TRACE_FUNC_DECL(over_taken)
+static void rcu_trace_boost_boost_called_preempt(void)
+{
+ preempt_disable();
+ rcu_trace_boost_boost_called(RCU_BOOST_ME);
+ preempt_enable();
+}
+static void rcu_trace_boost_unboost_called_preempt(void)
+{
+ preempt_disable();
+ rcu_trace_boost_unboost_called(RCU_BOOST_ME);
+ preempt_enable();
+}
#else /* CONFIG_RCU_TRACE */
/* These were created by the above macro "RCU_BOOST_TRACE_FUNC_DECL" */
-# define rcu_trace_boost_task_boost_called(rbd) do { } while (0)
+# define rcu_trace_boost_task_boost_called_preempt(rbd) do { } while (0)
# define rcu_trace_boost_task_boosted(rbd) do { } while (0)
-# define rcu_trace_boost_boost_called(rbd) do { } while (0)
+# define rcu_trace_boost_boost_called_preempt(rbd) do { } while (0)
# define rcu_trace_boost_try_boost(rbd) do { } while (0)
# define rcu_trace_boost_boosted(rbd) do { } while (0)
# define rcu_trace_boost_unboost_called(rbd) do { } while (0)
@@ -261,7 +273,7 @@ void __rcu_preempt_boost(void)
WARN_ON(!current->rcu_read_lock_nesting);
- rcu_trace_boost_boost_called(RCU_BOOST_ME);
+ rcu_trace_boost_boost_called_preempt();
/* check to see if we are already boosted */
if (unlikely(rcu_is_boosted(curr)))
@@ -313,7 +325,7 @@ void __rcu_preempt_unboost(void)
int prio;
unsigned long flags;
- rcu_trace_boost_unboost_called(RCU_BOOST_ME);
+ rcu_trace_boost_unboost_called_preempt();
/* if not boosted, then ignore */
if (likely(!rcu_is_boosted(curr)))
next prev parent reply other threads:[~2008-06-29 23:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-29 21:32 Noah Watkins
2008-06-29 22:23 ` Sven-Thorsten Dietrich
2008-06-29 23:18 ` Noah Watkins
2008-06-29 23:28 ` Paul E. McKenney [this message]
2008-06-30 12:37 ` Steven Rostedt
2008-07-01 19:08 ` Noah Watkins
2008-07-01 19:42 ` Steven Rostedt
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=20080629232844.GB8494@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=noahwatkins@gmail.com \
--cc=rostedt@goodmis.org \
--cc=sven@thebigcorporation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome