All of lore.kernel.org
 help / color / mirror / Atom feed
* - posix-timers-rcu-optimization-for-clock_gettime-fix.patch removed from -mm tree
@ 2007-02-16  8:23 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-16  8:23 UTC (permalink / raw)
  To: paulmck, johnstul, mingo, oleg, tglx, zippel, mm-commits


The patch titled
     POSIX timers RCU optimization fix for clock_gettime
has been removed from the -mm tree.  Its filename was
     posix-timers-rcu-optimization-for-clock_gettime-fix.patch

This patch was dropped because it was folded into posix-timers-rcu-optimization-for-clock_gettime.patch

------------------------------------------------------
Subject: POSIX timers RCU optimization fix for clock_gettime
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>

Fixes an exit()/posix_cpu_clock_get() race spotted by Oleg Nesterov. 
Solution is to move the p->signal check under the tasklist_lock.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/posix-cpu-timers.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff -puN kernel/posix-cpu-timers.c~posix-timers-rcu-optimization-for-clock_gettime-fix kernel/posix-cpu-timers.c
--- a/kernel/posix-cpu-timers.c~posix-timers-rcu-optimization-for-clock_gettime-fix
+++ a/kernel/posix-cpu-timers.c
@@ -312,10 +312,13 @@ int posix_cpu_clock_get(const clockid_t 
 					error = cpu_clock_sample(which_clock,
 								 p, &rtn);
 				}
-			} else if (p->tgid == pid && p->signal) {
+			} else {
 				read_lock(&tasklist_lock);
-				error = cpu_clock_sample_group(which_clock,
-							       p, &rtn);
+				if (p->tgid == pid && p->signal) {
+					error =
+					    cpu_clock_sample_group(which_clock,
+							           p, &rtn);
+				}
 				read_unlock(&tasklist_lock);
 			}
 		}
_

Patches currently in -mm which might be from paulmck@linux.vnet.ibm.com are

origin.patch
posix-timers-rcu-optimization-for-clock_gettime.patch
posix-timers-rcu-optimization-for-clock_gettime-fix.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-16  8:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-16  8:23 - posix-timers-rcu-optimization-for-clock_gettime-fix.patch removed from -mm tree akpm

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.