Re: CFS rq lock question

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Friday, April 11, 2008 - 10:37 am

On Fri, 2008-04-11 at 13:21 -0400, Dan Upton wrote:

/*
 * 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.



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
CFS rq lock question, Dan Upton, (Fri Apr 11, 10:21 am)
Re: CFS rq lock question, Peter Zijlstra, (Fri Apr 11, 10:37 am)
Re: CFS rq lock question, Peter Zijlstra, (Fri Apr 11, 10:41 am)