login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2011
»
January
»
4
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sched_class::select_task_rq()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yong Zhang
Subject:
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sched_class::select_task_rq()
Date: Monday, January 3, 2011 - 10:59 pm
On Mon, Jan 3, 2011 at 7:16 PM, Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
quoted text
> On Wed, 2010-12-29 at 22:31 +0800, Yong Zhang wrote: >> On Fri, Dec 24, 2010 at 01:23:46PM +0100, Peter Zijlstra wrote: >> > In preparation of calling select_task_rq() without rq->lock held, drop >> > the dependency on the rq argument. >> > >> > Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> >> > --- >> > @@ -3416,27 +3409,22 @@ void sched_exec(void) >> > { >> > struct task_struct *p = current; >> > unsigned long flags; >> > - struct rq *rq; >> > int dest_cpu; >> > >> > - rq = task_rq_lock(p, &flags); >> > - dest_cpu = p->sched_class->select_task_rq(rq, p, SD_BALANCE_EXEC, 0); >> > + raw_spin_lock_irqsave(&p->pi_lock, flags); >> >> Seems this should go to patch 07/17 ;) > > Ah, the reason its here is that this patch removes the rq argument and > thus we no longer need rq->lock. So this part relies on the property > introduced by patch 7.
What I mean is we could firstly add pi_lock in patch 7 and then remove the rq argument in this patch. :) Thanks, Yong -- Only stand for myself --
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:
[RFC][PATCH 00/17] sched: Reduce runqueue lock contention -v3
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 02/17] mutex: Use p->on_cpu for the adaptive spin
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 03/17] sched: Change the ttwu success details
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 04/17] sched: Clean up ttwu stats
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 05/17] x86: Optimize arch_spin_unlock_wait()
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 06/17] sched: Provide p->on_rq
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 07/17] sched: Serialize p->cpus_allowed and tt ...
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 08/17] sched: Drop the rq argument to sched_cl ...
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 11/17] sched: Delay task_contributes_to_load()
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 12/17] sched: Also serialize ttwu_local() with ...
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 13/17] sched: Remove rq->lock from the first h ...
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 14/17] sched: Remove rq argument to ttwu_stat()
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 15/17] sched: Rename ttwu_post_activation
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 16/17] sched: Move the second half of ttwu() t ...
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
[RFC][PATCH 17/17] sched: Sort hotplug vs ttwu queueing
, Peter Zijlstra
, (Fri Dec 24, 5:23 am)
Re: [RFC][PATCH 00/17] sched: Reduce runqueue lock content ...
, Peter Zijlstra
, (Fri Dec 24, 6:15 am)
Re: [RFC][PATCH 05/17] x86: Optimize arch_spin_unlock_wait()
, Linus Torvalds
, (Fri Dec 24, 11:26 am)
Re: [RFC][PATCH 06/17] sched: Provide p->on_rq
, Yong Zhang
, (Wed Dec 29, 7:14 am)
Re: [RFC][PATCH 07/17] sched: Serialize p->cpus_allowed an ...
, Yong Zhang
, (Wed Dec 29, 7:20 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Yong Zhang
, (Wed Dec 29, 7:31 am)
Re: [RFC][PATCH 14/17] sched: Remove rq argument to ttwu_s ...
, Yong Zhang
, (Wed Dec 29, 7:40 am)
Re: [RFC][PATCH 17/17] sched: Sort hotplug vs ttwu queueing
, Yong Zhang
, (Wed Dec 29, 7:51 am)
Re: [RFC][PATCH 07/17] sched: Serialize p->cpus_allowed an ...
, Peter Zijlstra
, (Mon Jan 3, 4:12 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Peter Zijlstra
, (Mon Jan 3, 4:16 am)
Re: [RFC][PATCH 14/17] sched: Remove rq argument to ttwu_s ...
, Peter Zijlstra
, (Mon Jan 3, 4:20 am)
Re: [RFC][PATCH 17/17] sched: Sort hotplug vs ttwu queueing
, Peter Zijlstra
, (Mon Jan 3, 4:21 am)
Re: [RFC][PATCH 05/17] x86: Optimize arch_spin_unlock_wait()
, Peter Zijlstra
, (Mon Jan 3, 4:32 am)
[RFC][PATCH] sembench: add stddev to the burn stats
, Peter Zijlstra
, (Mon Jan 3, 7:36 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Oleg Nesterov
, (Mon Jan 3, 7:59 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Peter Zijlstra
, (Mon Jan 3, 8:21 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Oleg Nesterov
, (Mon Jan 3, 8:49 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Peter Zijlstra
, (Mon Jan 3, 9:35 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Peter Zijlstra
, (Mon Jan 3, 9:41 am)
Re: [RFC][PATCH 12/17] sched: Also serialize ttwu_local() ...
, Oleg Nesterov
, (Mon Jan 3, 10:32 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Oleg Nesterov
, (Mon Jan 3, 11:05 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Yong Zhang
, (Mon Jan 3, 10:59 pm)
Re: [RFC][PATCH 05/17] x86: Optimize arch_spin_unlock_wait()
, Nick Piggin
, (Mon Jan 3, 11:45 pm)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Yong Zhang
, (Tue Jan 4, 12:27 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Peter Zijlstra
, (Tue Jan 4, 5:34 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Peter Zijlstra
, (Tue Jan 4, 6:00 am)
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sche ...
, Peter Zijlstra
, (Tue Jan 4, 6:01 am)
Re: [RFC][PATCH 16/17] sched: Move the second half of ttwu ...
, Oleg Nesterov
, (Tue Jan 4, 7:28 am)
Re: [RFC][PATCH 16/17] sched: Move the second half of ttwu ...
, Peter Zijlstra
, (Tue Jan 4, 7:47 am)
Re: [RFC][PATCH 16/17] sched: Move the second half of ttwu ...
, Oleg Nesterov
, (Tue Jan 4, 8:18 am)
Re: [RFC][PATCH 16/17] sched: Move the second half of ttwu ...
, Peter Zijlstra
, (Tue Jan 4, 8:43 am)
Re: [RFC][PATCH 16/17] sched: Move the second half of ttwu ...
, Oleg Nesterov
, (Tue Jan 4, 9:06 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Jan Engelhardt
Re: [PATCH] Allow Kconfig to set default mmap_min_addr protection
Dmitry Torokhov
Re: [2.6 patch] input/serio/hp_sdc.c section fix
Rafael J. Wysocki
[Bug #16380] Loop devices act strangely in 2.6.35
git
:
Steven Grimm
Using git as a general backup mechanism (was Re: Using GIT to store /etc)
Jeff King
Re: [PATCH] git-reset: allow --soft in a bare repo
Johannes Sixt
Re: [PATCH 01/14] msvc: Fix compilation errors in compat/win32/sys/poll.c
Johannes Schindelin
Re: [PATCH] Uninstall rule for top level Makefile
Shawn O. Pearce
Re: [PATCH v2] Speed up bash completion loading
git-commits-head
:
Linux Kernel Mailing List
cgroups: clean up cgroup_pidlist_find() a bit
Linux Kernel Mailing List
sony-laptop: Add support for extended hotkeys
Linux Kernel Mailing List
IB/core: Add support for masked atomic operations
Linux Kernel Mailing List
V4L/DVB (8939): cx18: fix sparse warnings
Linux Kernel Mailing List
ipv6 mcast: Check address family of gf_group in getsockopt(MS_FILTER).
linux-netdev
:
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Karsten Keil
[mISDN PATCH v2 05/19] Reduce stack size in dsp_cmx_send()
linux
Re: 2.6.23-rc8 network problem. Mem leak? ip1000a?
David Miller
Re: tun: Use netif_receive_skb instead of netif_rx
David Miller
Re: [net-next PATCH v2] llc enhancements
freebsd-current
:
Matthew Fleming
Re: [RFC] Outline of USB process integration in the kernel taskqueue system
illoai@gmail.com
Re: OT: 2d password
Hartmut Brandt
Re: problem with nss_ldap
Andrew Reilly
Re: FreeBSD's problems as seen by the BSDForen.de community
Max Laier
Re: Upcoming ABI Breakage in RELENG_7
Colocation donated by:
Syndicate