Re: [PATCH net] tcp/dccp: fix timewait races in timer handling

2015-09-21 Thread David Miller
From: Eric Dumazet Date: Sat, 19 Sep 2015 09:08:34 -0700 > From: Eric Dumazet > > When creating a timewait socket, we need to arm the timer before > allowing other cpus to find it. The signal allowing cpus to find > the socket is setting tw_refcnt to non zero value. > > As we set tw_refcnt in

[PATCH net] tcp/dccp: fix timewait races in timer handling

2015-09-19 Thread Eric Dumazet
From: Eric Dumazet When creating a timewait socket, we need to arm the timer before allowing other cpus to find it. The signal allowing cpus to find the socket is setting tw_refcnt to non zero value. As we set tw_refcnt in __inet_twsk_hashdance(), we therefore need to call inet_twsk_schedule() f