Messages in this thread Patch in this message | | | From | Kuniyuki Iwashima <> | Subject | [PATCH v1 net 12/16] tcp: Mark sysctl_tcp_low_latency obsolete. | Date | Tue, 5 Jul 2022 22:21:26 -0700 |
| |
Since commit b2fb4f54ecd4 ("tcp: uninline tcp_prequeue()"), sysctl_tcp_low_latency is no longer used. However, to mark it safe and finally remove proc_dointvec(), this patch changes handler to a lockless variant.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> --- net/ipv4/sysctl_net_ipv4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index b14931ca5c85..0287d55f9230 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c @@ -507,11 +507,12 @@ static struct ctl_table ipv4_table[] = { .proc_handler = proc_doulongvec_minmax_lockless, }, { + /* obsolete */ .procname = "tcp_low_latency", .data = &sysctl_tcp_low_latency, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec + .proc_handler = proc_dointvec_lockless, }, #ifdef CONFIG_NETLABEL { -- 2.30.2
| |