login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2011
»
January
»
3
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: Peter Zijlstra
Subject:
Re: [RFC][PATCH 08/17] sched: Drop the rq argument to sched_class::select_task_rq()
Date: Monday, January 3, 2011 - 9:41 am
On Mon, 2011-01-03 at 17:35 +0100, Peter Zijlstra wrote:
quoted text
> > In fact, I am completely confused. I do not understand why do we > > check task_running() at all. If we see on_rq == 0 && on_cpu == 1, > > then this task is going to clear its on_cpu soon, once it finishes > > context_switch(). > > > Probably, this check was needed before, try_to_wake_up() could > > activate the task_running() task without migrating. But, at first > > glance, this is no longer possible after this series? > > It can still do that, I think the problem is us dropping rq->lock in the > middle of schedule(), when the freshly woken migration thread comes in > between there and moves the task away, you can get into the situation > that two cpus reference the same task_struct at the same time, which > usually leads to 'interesting' situations.
Frr, brainfart, you cannot schedule the migration thread without completely finishing prev. /me goes ponder more --
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
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
Re: [PATCH 5/5]bluetooth:hci_bcsp Fix operation on 'bcsp->msgq_txseq' may be un...
Francis Moreau
Re: Disk geometry from /sys
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Casey Schaufler
Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel
git-commits-head
:
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
tracing: Simplify trace_option_write()
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Petko Manolov
git and binary files
Lynn Lin
Re: clearcase migration to git
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Marcin
Re: 4.6 reboots x336 ibm server(s)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate