Re: [PATCH net] tcp: tcp_get_info() should read tcp_time_stamp later

2017-03-16 Thread David Miller
From: Eric Dumazet Date: Thu, 16 Mar 2017 15:43:19 -0700 > From: Eric Dumazet > > Commit b369e7fd41f7 ("tcp: make TCP_INFO more consistent") moved > lock_sock_fast() earlier in tcp_get_info() > > This has the minor effect that jiffies value being sampled at the > beginning of tcp_get_info() is

[PATCH net] tcp: tcp_get_info() should read tcp_time_stamp later

2017-03-16 Thread Eric Dumazet
From: Eric Dumazet Commit b369e7fd41f7 ("tcp: make TCP_INFO more consistent") moved lock_sock_fast() earlier in tcp_get_info() This has the minor effect that jiffies value being sampled at the beginning of tcp_get_info() is more likely to be off by one, and we report big tcpi_last_data_sent valu