Subject: Re: [PATCH] inetpeer: fix a race in inetpeer_gc_worker()

From: Steffen Klassert <[email-masked]>
Date: Tue, 5 Jun 2012 13:56:40 +0200

On Tue, Jun 05, 2012 at 11:28:27AM +0200, Eric Dumazet wrote:
> From: Eric Dumazet <[email-masked]>
> 
> commit 5faa5df1fa2024 (inetpeer: Invalidate the inetpeer tree along with
> the routing cache) added a race :
> 
> Before freeing an inetpeer, we must respect a RCU grace period, and make
> sure no user will attempt to increase refcnt.
> 

As already mentioned in the other mail. In this case, I think
we can just delete the inetpeer once the refcount got zero.