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

Vladimir Davydov vdavydov at parallels.com
Fri Jul 24 08:21:36 PDT 2015


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?

> -			venet_acct_destroy_stat(ve->veid);
> +		if (atomic_read(&ve->stat->users) == 0)
>  			ve->stat = NULL;
> -		}
>  	}
>  }



More information about the Devel mailing list