[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1272893192.5605.122.camel@twins>
Date: Mon, 03 May 2010 15:26:32 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Tejun Heo <tj@...nel.org>
Cc: mingo@...e.hu, linux-kernel@...r.kernel.org, x86@...nel.org,
oleg@...hat.com, rusty@...tcorp.com.au, sivanich@....com,
heiko.carstens@...ibm.com, dipankar@...ibm.com,
josh@...edesktop.org, paulmck@...ux.vnet.ibm.com,
akpm@...ux-foundation.org, arjan@...ux.intel.com,
torvalds@...ux-foundation.org
Subject: Re: [PATCH 3/4] scheduler: replace migration_thread with cpu_stop
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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists