netdev
[Top] [All Lists]

Re: atomic_dec_and_test for child dst needed in dst_destroy?

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: Re: atomic_dec_and_test for child dst needed in dst_destroy?
From: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Wed, 6 Apr 2005 11:48:50 -0700 (PDT)
Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20050406111721.3ac67605.davem@davemloft.net>
References: <Pine.LNX.4.58.0504051925250.21486@graphe.net> <E1DJ5y2-0003rF-00@gondolin.me.apana.org.au> <20050406111721.3ac67605.davem@davemloft.net>
Sender: netdev-bounce@xxxxxxxxxxx
On Wed, 6 Apr 2005, David S. Miller wrote:

> See his other emails in this thread.  If it can be converted to
> atomic_dec() then he wants to change the counter into an array
> of counters on NUMA systems.

Correct.

> But his trick only works if the atomic_dec_and_test() can be eliminated
> for all cases, which we're now quite certain is not possible.

Some changes to the way locking is done between the garbage collector
and dst_destroy would be necessary. Lets see if the author
of the patch can come up with a solution to this.

<Prev in Thread] Current Thread [Next in Thread>