lkml.org 
[lkml]   [2010]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] sched: enforce per-cpu utilization limits on runtime balancing
> From: Peter Zijlstra <peterz@infradead.org>
> Date: Thu, Feb 25, 2010 09:28:22PM +0100
>
> On Tue, 2010-02-23 at 19:56 +0100, Fabio Checconi wrote:
> > + /*
> > + * Make sure that before restarting balancing everyone
> > + * sees the new free bandwidth.
> > + */
> > + smp_wmb();
>
> You cannot order something on its own, barriers come in pairs, where is
> his?

It was coupled with the acquire barrier implied by the spin_lock(rt_b)
in the balance path, as the other wmb() before starting the reset (more
details on the reply about this last barrier, as per your comment they
can be removed).


\
 
 \ /
  Last update: 2010-03-03 17:49    [W:0.065 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site