[Devel] [PATCH rh7] net: Don't nillify ve::ve_netns of ve0 on net exit, v2
Cyrill Gorcunov
gorcunov at odin.com
Wed May 13 11:08:32 PDT 2015
On Wed, May 13, 2015 at 08:01:05PM +0300, Cyrill Gorcunov wrote:
> On Wed, May 13, 2015 at 07:59:45PM +0300, Cyrill Gorcunov wrote:
> > When net-exit routine executes we zap ve::ve_netns member
> > but we should not nillify ve0::init_net, it's permanent one.
> >
> > https://jira.sw.ru/browse/PSBM-33480
> >
> > p.s.: When net unsharing happens on ve0 we do set net->owner_ve
> > to ve0, thus on exit we occasionally rip it off causing any
> > futher attempts to call unshare on ve0 to fail.
> >
> > v2:
> > - same applies when net namespace is created inside container
> > itself: don't zap it until the net we're cleaning is the owner
> >
> > Signed-off-by: Cyrill Gorcunov <gorcunov at odin.com>
> > CC: Andrew Vagin <avagin at odin.com>
>
> Guys, fwiw, I didn't test it yet, just wanna to share early
> (there is some problem in my testing environment, so once
> I get it runnning again -- will write here, meanwhile the
> patch is with untested status).
Finally tested.
More information about the Devel
mailing list