[Devel] [PATCH rh7 v2] ve/vznetstat: Don't destroy statistics until explicitly asked

Cyrill Gorcunov gorcunov at virtuozzo.com
Fri Jul 24 08:26:29 PDT 2015


On Fri, Jul 24, 2015 at 06:21:36PM +0300, Vladimir Davydov wrote:
> On Fri, Jul 24, 2015 at 06:10:10PM +0300, Cyrill Gorcunov wrote:
> 
> > @@ -1098,10 +1098,8 @@ static void __net_exit net_exit_acct(str
> >  
> >  	if (ve->stat) {
> >  		venet_acct_put_stat(ve->stat);
> > -		if (atomic_read(&ve->stat->users) == 0) {
> 
> Is there any point in checking this?

Yes. There might be several several nets.



More information about the Devel mailing list