summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/pensando
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-02-25 19:18:55 +0300
committerDavid S. Miller <davem@davemloft.net>2022-02-28 14:40:47 +0300
commitb3483bc7a1f2673b35331e60668104ba2be46510 (patch)
tree2d43f17047844c6ce22ece7d96ff6e085061dc81 /drivers/net/ethernet/pensando
parent6a4696c4284f758e8418e5507c3c757ecdf262a4 (diff)
downloadlinux-b3483bc7a1f2673b35331e60668104ba2be46510.tar.xz
net/sysctl: avoid two synchronize_rcu() calls
Both rps_sock_flow_sysctl() and flow_limit_cpu_sysctl() are using synchronize_rcu() right before freeing memory either by vfree() or kfree() They can switch to kvfree_rcu(ptr) and kfree_rcu(ptr) to benefit from asynchronous mode, instead of blocking the current thread. Note that kvfree_rcu(ptr) and kfree_rcu(ptr) eventually can have to use synchronize_rcu() in some memory pressure cases. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pensando')
0 files changed, 0 insertions, 0 deletions