On Fri, Jul 24, 2015 at 05:57:48PM +0300, Vladimir Davydov wrote:
> On Fri, Jul 24, 2015 at 05:17:49PM +0300, Cyrill Gorcunov wrote:
> 
> > @@ -1096,13 +1096,7 @@ static void __net_exit net_exit_acct(str
> >  {
> >     struct ve_struct *ve = net->owner_ve;
> >  
> > -   if (ve->stat) {
> > -           venet_acct_put_stat(ve->stat);
> > -           if (atomic_read(&ve->stat->users) == 0) {
> > -                   venet_acct_destroy_stat(ve->veid);
> > -                   ve->stat = NULL;
> > -           }
> > -   }
> > +   venet_acct_put_stat(ve->stat);
> 
> I think you'd better clear (w/o destruction) ve->stat here rather than
> in venetstat_exit.

Yeah, good idea, letme test.
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to