Re: [PATCH net] tcp: tcp_get_info() should fetch socket fields once

2015-04-17 Thread David Miller
From: Eric Dumazet Date: Thu, 16 Apr 2015 16:12:28 -0700 > From: Eric Dumazet > > tcp_get_info() can be called without holding socket lock, > so any socket fields can change under us. > > Use READ_ONCE() to fetch sk_pacing_rate and sk_max_pacing_rate > > Fixes: 977cb0ecf82e ("tcp: add pacing_

[PATCH net] tcp: tcp_get_info() should fetch socket fields once

2015-04-16 Thread Eric Dumazet
From: Eric Dumazet tcp_get_info() can be called without holding socket lock, so any socket fields can change under us. Use READ_ONCE() to fetch sk_pacing_rate and sk_max_pacing_rate Fixes: 977cb0ecf82e ("tcp: add pacing_rate information into tcp_info") Signed-off-by: Eric Dumazet --- David, I