login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
29
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup access
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup access
Date: Monday, March 29, 2010 - 2:19 pm
On Mon, 2010-03-29 at 14:15 -0700, Paul E. McKenney wrote:
quoted text
> Add an rcu_read_lock() / rcu_read_unlock() pair to protect a fork-time > cgroup access. This seems likely to be a false positive. > > Located by: Alessio Igor Bogani <abogani@texware.it> > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> > --- > > sched.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/kernel/sched.c b/kernel/sched.c > index 9ab3cd7..d4bb5e0 100644 > --- a/kernel/sched.c > +++ b/kernel/sched.c > @@ -2621,7 +2621,9 @@ void sched_fork(struct task_struct *p, int clone_flags) > if (p->sched_class->task_fork) > p->sched_class->task_fork(p); > > + rcu_read_lock(); > set_task_cpu(p, cpu); > + rcu_read_unlock(); > > #if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) > if (likely(sched_info_on()))
What got accessed? This patch just looks wrong. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH tip/core/urgent] rcu: protect fork-time cgroup access
, Paul E. McKenney
, (Mon Mar 29, 2:15 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Peter Zijlstra
, (Mon Mar 29, 2:19 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Peter Zijlstra
, (Mon Mar 29, 2:26 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 2:29 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 2:34 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Peter Zijlstra
, (Mon Mar 29, 2:42 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 2:51 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 3:24 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul Menage
, (Mon Mar 29, 3:43 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 4:05 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Peter Zijlstra
, (Tue Mar 30, 1:50 am)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Tue Mar 30, 10:28 am)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul Menage
, (Tue Mar 30, 11:57 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11409] build issue #564 for v2.6.27-rc4 : undefined reference to `NS8390p_in...
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Andrew Morton
2.6.23-rc6-mm1
Con Kolivas
Re: [PATCH] sched: staircase deadline misc fixes
Jeremy Fitzhardinge
[PATCH 33 of 36] x86_64: ia32entry: replace privileged instructions with pvops
linux-netdev
:
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
git
:
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
openbsd-misc
:
Jason Dixon
Re: any web management gui for pf ?
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Marco Peereboom
Re: Singularity OS
linux-kvm
:
Harald Braumann
Windows guest freezes with black screen
Huang Ying
Re: [PATCH] Ignore SRAO MCE if another MCE is being processed
Alex Williamson
Re: [RFC PATCH 5/6] savevm: Migrate RAM based on name/offset
Alexander Graf
[PATCH 23/27] KVM: PPC: PV assembler helpers
Anthony Liguori
Re: [Qemu-devel] [PATCH] Vmchannel PCI device.
Colocation donated by:
Syndicate