OpenVZ Forum


Home » Mailing lists » Devel » [patch 0/3][NETNS45][V2] remove timewait sockets at namespace exit
Re: [patch 3/3][NETNS45][V2] remove timewait sockets at cleanup [message #20932 is a reply to message #20901] Fri, 28 September 2007 06:46 Go to previous messageGo to previous message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
Daniel Lezcano wrote:
> local_bh_disable();
> 
> /* Browse the the established hash table */
> for (h = 0; h < (tcp_hashinfo.ehash_size); h++) {
>                struct inet_ehash_bucket *head =
>                        inet_ehash_bucket(&tcp_hashinfo, h);
> restart:
>          write_lock(&head->lock);
>          sk_for_each_safe(sk, node, tmp, &head->twchain) {
>              tw = inet_twsk(sk);
>              if (tw->tw_net != net)
>                  continue;
>              sock_hold(sk);
>              write_unlock(&head->lock);
>              inet_twsk_deschedule(tw, &tcp_death_row);
>              inet_twsk_put(tw);
>              goto restart;
>          }   
> }
> 
> local_bh_enable();

yes :)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH -mm] Hook up group scheduler with control groups
Next Topic: [patch 0/2][NETNS45][V3] remove timewait sockets at namespace exit
Goto Forum:
  


Current Time: Thu Oct 09 06:21:02 GMT 2025

Total time taken to generate the page: 0.15323 seconds