mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Cc: Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org
Subject: Re: [PATCH -rt] rt-slab: fix cpu inconsistency case
Date: Thu, 20 Mar 2008 15:32:35 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0803201519160.21990@gandalf.stny.rr.com> (raw)
In-Reply-To: <47E2A63B.4020003@ct.jp.nec.com>


Hi Hiroshi,

Thanks for looking into it. I'll take a deeper look at it later, but
first I have a few nitpicks with the patch.

On Thu, 20 Mar 2008, Hiroshi Shimamoto wrote:
>
> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> ---
>  mm/slab.c |   18 +++++++++---------
>  1 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/mm/slab.c b/mm/slab.c
> index 4bf6ca8..7beb378 100644
> --- a/mm/slab.c
> +++ b/mm/slab.c
> @@ -138,8 +138,8 @@
>   *
>   * (On PREEMPT_RT, these are NOPs, but we have to drop/get the irq locks.)
>   */
> -# define slab_irq_disable_nort()	local_irq_disable()
> -# define slab_irq_enable_nort()		local_irq_enable()
> +# define slab_irq_disable_nort(cpu)	slab_irq_disable(cpu)
> +# define slab_irq_enable_nort(cpu)	slab_irq_enable(cpu)

This is the !PREEMPT_RT version. It should stay as is (with the
exception of ignoring the "cpu" variable. [ (void)cpu; ? ]

#define slab_irq_disable_nort(cpu) \
	do { \
		(void)cpu;  \
		local_irq_disable(); \
	} while(0)


>  # define slab_irq_disable_rt(flags)	do { (void)(flags); } while (0)
>  # define slab_irq_enable_rt(flags)	do { (void)(flags); } while (0)
>  # define slab_spin_lock_irq(lock, cpu) \
> @@ -160,8 +160,8 @@ DEFINE_PER_CPU_LOCKED(int, slab_irq_locks) = { 0, };
>  	do { slab_irq_enable(cpu); (void) (flags); } while (0)
>  # define slab_irq_disable_rt(cpu)	slab_irq_disable(cpu)
>  # define slab_irq_enable_rt(cpu)	slab_irq_enable(cpu)
> -# define slab_irq_disable_nort()	do { } while (0)
> -# define slab_irq_enable_nort()		do { } while (0)
> +# define slab_irq_disable_nort(cpu)	do { } while (0)
> +# define slab_irq_enable_nort(cpu)	do { } while (0)

And these are the PREEMPT_RT version. So basically, this patch is a nop
for PREEMPT_RT. I doubt it will solve your bug ;-)


-- Steve


  reply	other threads:[~2008-03-20 19:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-20 18:00 Hiroshi Shimamoto
2008-03-20 19:32 ` Steven Rostedt [this message]
2008-03-20 20:10   ` Hiroshi Shimamoto
2008-03-21 20:37     ` Steven Rostedt
2008-03-21 20:47       ` Hiroshi Shimamoto
2008-03-24 20:35         ` Steven Rostedt
2008-03-24 20:40           ` Steven Rostedt
2008-03-24 21:11             ` Hiroshi Shimamoto
2008-03-24 20:54           ` Hiroshi Shimamoto
2008-03-21 18:11   ` Daniel Walker

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=Pine.LNX.4.58.0803201519160.21990@gandalf.stny.rr.com \
    --to=rostedt@goodmis.org \
    --cc=h-shimamoto@ct.jp.nec.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=mingo@elte.hu \
    --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

all inboxes | Powered by JetHome®