login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
28
Re: [PATCH] sched: missing locking in sched_domains code
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Heiko Carstens <heiko.carstens@...>
Cc: Ingo Molnar <mingo@...>, Gautham R Shenoy <ego@...>, Paul Jackson <pj@...>, <linux-kernel@...>
Subject:
Re: [PATCH] sched: missing locking in sched_domains code
Date: Monday, April 28, 2008 - 4:57 am
On Mon, 28 Apr 2008 10:49:04 +0200 Heiko Carstens <heiko.carstens@de.ibm.com> wrote:
quoted text
> On Mon, Apr 28, 2008 at 10:32:22AM +0200, Ingo Molnar wrote: > > > > * Heiko Carstens <heiko.carstens@de.ibm.com> wrote: > > > > > /* doms_cur_mutex serializes access to doms_cur[] array */ > > > static DEFINE_MUTEX(doms_cur_mutex); > > > > > > +static inline void lock_doms_cur(void) > > > +{ > > > + mutex_lock(&doms_cur_mutex); > > > +} > > > > > @@ -7813,8 +7811,10 @@ int arch_reinit_sched_domains(void) > > > int err; > > > > > > get_online_cpus(); > > > + lock_doms_cur(); > > > > thanks, that looks a lot more clean already. May i ask for another > > thing, if you are hacking on this anyway? Please get rid of the > > lock_doms_cur() complication now that it's not conditional - an open > > coded mutex_lock(&sched_doms_mutex) looks more readable - it gives a > > clear idea about what's happening. Also, please rename sched_doms_mutex > > to something less tongue-twisting - such as sched_domains_mutex. Hm? > > Your wish is my order:
heh, let's all boss Heiko around.
quoted text
> /* doms_cur_mutex serializes access to doms_cur[] array */ > -static DEFINE_MUTEX(doms_cur_mutex); > +static DEFINE_MUTEX(sched_domains_mutex);
The comment refers to a no-longer-existing lock, and no longer correctly describes the lock's usage. --
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] sched: missing locking in sched_domains code
, Heiko Carstens
, (Sun Apr 27, 5:12 pm)
Re: [PATCH] sched: missing locking in sched_domains code
, Andrew Morton
, (Sun Apr 27, 9:39 pm)
Re: [PATCH] sched: missing locking in sched_domains code
, Heiko Carstens
, (Mon Apr 28, 3:09 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Andrew Morton
, (Mon Apr 28, 3:28 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Heiko Carstens
, (Mon Apr 28, 3:52 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Heiko Carstens
, (Mon Apr 28, 4:11 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Ingo Molnar
, (Mon Apr 28, 4:32 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Heiko Carstens
, (Mon Apr 28, 4:49 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Andrew Morton
, (Mon Apr 28, 4:57 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Heiko Carstens
, (Mon Apr 28, 5:17 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Andrew Morton
, (Mon Apr 28, 5:31 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Heiko Carstens
, (Mon Apr 28, 5:33 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Ingo Molnar
, (Mon Apr 28, 9:13 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Ingo Molnar
, (Mon Apr 28, 8:27 am)
Re: [PATCH] sched: missing locking in sched_domains code
, Ingo Molnar
, (Mon Apr 28, 3:24 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ian Campbell
Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Justin Piszcz
Linux Software RAID 5 Performance Optimizations: 2.6.19.1: (211MB/s read & 195...
Alan
Re: [RFC] Heads up on sys_fallocate()
netbsd-tech-kern
:
Matthias Scheler
Re: HEADS UP: timecounters (branch simonb-timecounters) merged into -current
David Laight
long usernames
Quentin Garnier
Re: Understanding foo_open, foo_read, etc.
Jared D. McNeill
Breaking binary compatibility for /dev/joy
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
Colocation donated by:
Who's online
There are currently
2 users
and
895 guests
online.
Online users
strcmp
spiral1129
Syndicate