lkml.org 
[lkml]   [2022]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 net 12/16] tcp: Mark sysctl_tcp_low_latency obsolete.
    Date
    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
    \
     
     \ /
      Last update: 2022-07-06 07:25    [W:5.850 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site