login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
4
Re: [PATCH 3/4] scheduler: replace migration_thread with cpu_stop
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [PATCH 3/4] scheduler: replace migration_thread with cpu_stop
Date: Tuesday, May 4, 2010 - 5:45 am
On Tue, 2010-05-04 at 09:17 +0200, Tejun Heo wrote:
quoted text
> Hello, > > On 05/03/2010 03:26 PM, Peter Zijlstra wrote: > > On Thu, 2010-04-22 at 18:09 +0200, Tejun Heo wrote: > >> @@ -2909,7 +2912,9 @@ redo: > >> } > >> raw_spin_unlock_irqrestore(&busiest->lock, flags); > >> if (active_balance) > >> - wake_up_process(busiest->migration_thread); > >> + stop_one_cpu_nowait(cpu_of(busiest), > >> + active_load_balance_cpu_stop, busiest, > >> + &busiest->active_balance_work); > > > > So who guarantees busiest->active_balance_work isn't already enqueued by > > some other cpu's load-balancer run? > > > > Hmmm... maybe I'm mistaken but isn't that guaranteed by > busiest->active_balance which is protected by the rq lock? > active_load_balance_cpu_stop is scheduled iff busiest->active_balance > was changed from zero and only active_load_balance_cpu_stop() can > clear it at the end of its execution at which point the > active_balance_work is safe to reuse.
Ah, indeed. It wasn't obvious from looking at the patch, but when looking at the full code it fairly easy to see. --
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:
[PATCHSET sched/core] cpu_stop: implement and use cpu_stop
, Tejun Heo
, (Thu Apr 22, 9:09 am)
[PATCH 3/4] scheduler: replace migration_thread with cpu_stop
, Tejun Heo
, (Thu Apr 22, 9:09 am)
Re: [PATCH 3/4] scheduler: replace migration_thread with c ...
, Peter Zijlstra
, (Mon May 3, 6:26 am)
Re: [PATCH 3/4] scheduler: replace migration_thread with c ...
, Tejun Heo
, (Tue May 4, 12:17 am)
Re: [PATCH 3/4] scheduler: replace migration_thread with c ...
, Peter Zijlstra
, (Tue May 4, 5:45 am)
Re: [PATCH 3/4] scheduler: replace migration_thread with c ...
, Tejun Heo
, (Tue May 4, 5:49 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Matthew Garrett
Re: [PATCH] Enable speedstep for sonoma processors.
Mauro Carvalho Chehab
Re: [PATCH 1/2] media: Add timberdale video-in driver
Peter Zijlstra
[PATCH 23/30] netvm: skb processing
Greg Kroah-Hartman
[PATCH 21/28] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
git
:
Jan Hudec
Re: GIT push to sftp (feature request)
Steffen Prohaska
[PATCH 0/4] core.ignorecase
Johannes Schindelin
Re: Git checkout preserve timestamp?
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Johan Herland
Re: What's cooking in git.git (Oct 2010, #01; Wed, 13)
linux-netdev
:
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Jan Engelhardt
Re: [PATCH] Fix netfilter xt_time's time_mt()'s use of do_div()
Herbert Xu
Re: [RFC PATCH 00/17] virtual-bus
Jeff Kirsher
Re: [net-next-2.6 PATCH] e1000e: don't inadvertently re-set INTX_DISABLE
git-commits-head
:
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
Use path_put() in a few places instead of {mnt,d}put()
Linux Kernel Mailing List
mv643xx_eth: use sw csum for big packets
Linux Kernel Mailing List
arm: fix HAVE_CLK merge goof
Linux Kernel Mailing List
arm: convert pcm037 platform to use smsc911x
freebsd-current
:
David Wolfskill
"interrupt storm..."; seems associated with an0 NIC
Andriy Gapon
Re: letting glabel recognise a media change
Garrett Cooper
Re: Only display ACPI bootmenu key if ACPI is present
Pyun YongHyeon
CFT: msk(4) Rx checksum offloading support
FreeBSD Tinderbox
[head tinderbox] failure on sparc64/sparc64
Colocation donated by:
Syndicate