tcp: use 2-arg optimal variant of kfree_rcu()
authorEric Dumazet <edumazet@google.com>
Fri, 2 Dec 2022 05:28:47 +0000 (05:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 Dec 2022 04:44:45 +0000 (20:44 -0800)
commit55fb80d518c7323d05b71eda0c9f9d657b373816
tree7925f5b0e805d3ff49cf635562625ce2d9905c22
parentedd4e25a230dc8a977fca667db788424917ca2f3
tcp: use 2-arg optimal variant of kfree_rcu()

kfree_rcu(1-arg) should be avoided as much as possible,
since this is only possible from sleepable contexts,
and incurr extra rcu barriers.

I wish the 1-arg variant of kfree_rcu() would
get a distinct name, like kfree_rcu_slow()
to avoid it being abused.

Fixes: 459837b522f7 ("net/tcp: Disable TCP-MD5 static key on tcp_md5sig_info destruction")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Dmitry Safonov <dima@arista.com>
Link: https://lore.kernel.org/r/20221202052847.2623997-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_ipv4.c