login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
11
Re: CFS rq lock question
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <peterz@...>
To: Dan Upton <upton.dan.linux@...>
Cc: <linux-kernel@...>, Ingo Molnar <mingo@...>
Subject:
Re: CFS rq lock question
Date: Friday, April 11, 2008 - 1:41 pm
On Fri, 2008-04-11 at 19:37 +0200, Peter Zijlstra wrote:
quoted text
> On Fri, 2008-04-11 at 13:21 -0400, Dan Upton wrote: > > I'm poking around with some scheduler stuff, and there's something I'm > > not clear on for the CFS runqueue locks. The comments before > > __load_balance_iterator(...) in sched_fair.c suggests things can be > > dequeued even though the runqueue lock is held. Can things also be > > added to the queue while the lock is held? (Also, either way, what's > > the rationale that dequeueing is a safe procedure when somebody else > > holds a lock?) > > /* > * Load-balancing iterator. Note: while the runqueue stays locked > * during the whole iteration, the current task might be > * dequeued so the iterator has to be dequeue-safe. Here we > * achieve that by always pre-iterating before returning > * the current task: > */ > > I don't think this comment is correct, but if it were, it would only > apply to rq->curr, not for any enqueue/dequeue. >
D'oh, I'm silly.. the task can be dequeued because we move it to another cpu. --
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:
CFS rq lock question
, Dan Upton
, (Fri Apr 11, 1:21 pm)
Re: CFS rq lock question
, Peter Zijlstra
, (Fri Apr 11, 1:37 pm)
Re: CFS rq lock question
, Peter Zijlstra
, (Fri Apr 11, 1:41 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Re: LSM conversion to static interface
Ingo Molnar
[patch 03/13] syslets: generic kernel bits
Ingo Molnar
Re: [PATCH 6/6] sched: disabled rt-bandwidth by default
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gregory Haskins
[RFC PATCH 00/17] virtual-bus
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
1041 guests
online.
Online users
Jeremy
cofebarker
vv_ivango
Syndicate