[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <47BACEC4.1020906@gmail.com>
Date: Tue, 19 Feb 2008 07:42:44 -0500
From: Gregory Haskins <gregory.haskins@...il.com>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
CC: Srivatsa Vaddagiri <vatsa@...ux.vnet.ibm.com>,
Dhaval Giani <dhaval@...ux.vnet.ibm.com>,
Paul Jackson <pj@....com>,
Arjan van de Ven <arjan@...radead.org>,
Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
Gregory Haskins <ghaskins@...ell.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFC][PATCH 2/2] sched: fair-group: per root-domain load balancing
Peter Zijlstra wrote:
> On Fri, 2008-02-15 at 11:46 -0500, Gregory Haskins wrote:
>
>
>> but perhaps you can convince me that it is not needed?
>> (i.e. I am still not understanding how the timer guarantees the stability).
>>
>
> ok, let me try again.
>
> So we take rq->lock, at this point we know rd is valid.
> We also know the timer is active.
>
> So when we release it, the last reference can be dropped and we end up
> in the hrtimer_cancel(), right before the kfree().
>
> hrtimer_cancel() will wait for the timer to end. therefore delaying the
> kfree() until the running timer finished.
>
>
Ok, I see it now. I agree that I think it is safe. Thanks!
-Greg
Download attachment "signature.asc" of type "application/pgp-signature" (251 bytes)
Powered by blists - more mailing lists