mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Esben Nielsen <nielsen.esben@googlemail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	John Stultz <johnstul@us.ibm.com>,
	"Paul E. McKenney" <paulmck@us.ibm.com>,
	Dipankar Sarma <dipankar@in.ibm.com>,
	Arjan van de Ven <arjan@infradead.org>,
	Mike Galbraith <efault@gmx.de>,
	Daniel Walker <dwalker@mvista.com>,
	Manish Lachwani <mlachwani@mvista.com>,
	bastien.dugue@bull.net, Lee Revell <rlrevell@joe-job.com>
Subject: Re: 2.6.18-rt6
Date: Wed, 18 Oct 2006 23:07:35 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0610182257590.13930@frodo.shire> (raw)
In-Reply-To: <20061018083921.GA10993@elte.hu>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1767 bytes --]



On Wed, 18 Oct 2006, Ingo Molnar wrote:

>
> i've released the 2.6.18-rt6 tree, which can be downloaded from the
> usual place:
>
>  http://redhat.com/~mingo/realtime-preempt/
>
> this is a fixes-mostly release. Changes since -rt4:
>
> - fix for module loading / symbol table crash (John Stultz)
> - scheduler fix (Mike Galbraith)
> - fix x86_64 NMI watchdog & preempt-rcu interaction
> - fix time-warp false positives
> - jiffies_to_timespec export fix (Steven Rostedt)
> - ll_rw_block.c warning fix (Mike Galbraith)
> - PPC updates (Daniel Walker)
> - MIPS updates (Manish Lachwani)
> - ARM oprofile fix (Kevin Hilman)
> - traditional futexes queued via plists (Séstien Duguése)
> - (various other smaller fixes)

I assume this goes under small fixes:

I see that
 	spin_lock(&pi_state->pi_mutex.wait_lock);
is added in futex.c:570 in wake_futex_pi().
I do but I see some missing unlocks at returns.

I have a totally untested (it compiles) patch below.

Esben

  kernel/futex.c |    8 ++++++--
  1 file changed, 6 insertions(+), 2 deletions(-)

Index: linux-2.6.18-rt/kernel/futex.c
===================================================================
--- linux-2.6.18-rt.orig/kernel/futex.c
+++ linux-2.6.18-rt/kernel/futex.c
@@ -590,10 +590,14 @@ static int wake_futex_pi(u32 __user *uad
  		inc_preempt_count();
  		curval = futex_atomic_cmpxchg_inatomic(uaddr, uval, newval);
  		dec_preempt_count();
-		if (curval == -EFAULT)
+		if (curval == -EFAULT) {
+			spin_unlock(&pi_state->pi_mutex.wait_lock);
  			return -EFAULT;
-		if (curval != uval)
+		}
+		if (curval != uval) {
+			spin_unlock(&pi_state->pi_mutex.wait_lock);
  			return -EINVAL;
+		}
  	}

  	spin_lock_irq(&pi_state->owner->pi_lock);

  parent reply	other threads:[~2006-10-18 21:09 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-18  8:39 2.6.18-rt6 Ingo Molnar
2006-10-18  9:14 ` 2.6.18-rt6 Sébastien Dugué
2006-10-18 10:05   ` 2.6.18-rt6 Ingo Molnar
2006-10-18 14:53 ` 2.6.18-rt6 Paul E. McKenney
2006-10-18 21:07 ` Esben Nielsen [this message]
2006-10-20  0:23 ` 2.6.18-rt6 Sergio Monteiro Basto
2006-10-20  0:59   ` 2.6.18-rt6 john stultz
2006-10-23 20:33     ` 2.6.18-rt6 and compile fail with rt7 on x86_64 Sergio Monteiro Basto
2006-10-20 15:00 ` 2.6.18-rt6 Lee Revell
2006-10-20 15:53   ` 2.6.18-rt6 Mark Knecht
2006-10-23 16:34   ` -rt7 announcement? (was Re: 2.6.18-rt6) Lee Revell
2006-10-23 18:29     ` Mark Knecht
2006-10-23 18:35     ` Thomas Gleixner
2006-10-23 18:44       ` Mark Knecht
2006-10-23 18:59         ` Thomas Gleixner
2006-10-23 20:09           ` Mark Knecht
2006-10-23 18:49       ` Lee Revell
2006-10-23 18:58         ` Thomas Gleixner
2006-10-23 20:26       ` Sergio Monteiro Basto
2006-10-23 20:40         ` Lee Revell
2006-10-24  1:26           ` -rt7 announcement? (was Re: 2.6.18-rt6) and more info about a compile error Sergio Monteiro Basto
2006-10-24  4:38             ` Thomas Gleixner
2006-10-24 16:48               ` 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.64.0610182257590.13930@frodo.shire \
    --to=nielsen.esben@googlemail.com \
    --cc=arjan@infradead.org \
    --cc=bastien.dugue@bull.net \
    --cc=dipankar@in.ibm.com \
    --cc=dwalker@mvista.com \
    --cc=efault@gmx.de \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mlachwani@mvista.com \
    --cc=paulmck@us.ibm.com \
    --cc=rlrevell@joe-job.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

all inboxes | Powered by JetHome®