netdev
[Top] [All Lists]

Re: [NET] Add barriers for dst refcnt

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: Re: [NET] Add barriers for dst refcnt
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 6 Feb 2005 18:04:03 +1100
Cc: netdev@xxxxxxxxxxx, anton@xxxxxxxxx
In-reply-to: <20050205172101.7874e1dd.davem@davemloft.net>
References: <20050204073311.GA11716@gondor.apana.org.au> <20050205172101.7874e1dd.davem@davemloft.net>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040722i
On Sat, Feb 05, 2005 at 05:21:01PM -0800, David S. Miller wrote:
> 
> I "think" the dst_release() case is theoretical.  dst_release()
> runs in a locked context for the thing referencing 'dst'.  Be it
> the route hash, a socket, whatever.

Unless dst_run_gc takes the same lock as the context doing the
dst_release you'll still be in trouble :)
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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