OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/4] SUNRPC: service release in network namespace context
Re: [PATCH 3/4] SUNRPC: service destruction in network namespace context [message #45093 is a reply to message #45092] Fri, 27 January 2012 15:21 Go to previous messageGo to previous message
Stanislav Kinsbursky is currently offline  Stanislav Kinsbursky
Messages: 683
Registered: October 2011
Senior Member
27.01.2012 18:33, J. Bruce Fields пишет:
> OK, so at this point svc_close_net(serv, current->nsproxy->net_ns) is
> enough to clear out sv_permsocks and sv_temp_socks because we know that
> the only sockets left are in that namespace. Got it.
>

BTW, is this approach looks suitable for NFSd service?

> I'm not sure. The one thing that might have helped mere here would be
> a comment to explain what's going on, maybe something like:
>
> svc_close_net(serv, net);
> + /*
> + * The last user is gone, so the only sockets left belonged its
> + * network namespace:
> + */
> BUG_ON(!list_empty(&serv->sv_permsocks));
> BUG_ON(!list_empty(&serv->sv_tempsocks));

Ok, can do so.


--
Best regards,
Stanislav Kinsbursky
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH rhel6] Allow ipv6 proxies and arp proxies be shown with iproute2
Next Topic: [PATCH v2] Allow ipv6 proxies and arp proxies be shown with iproute2
Goto Forum:
  


Current Time: Sun Oct 12 19:10:37 GMT 2025

Total time taken to generate the page: 0.21533 seconds