From: Kuniyuki Iwashima <kun...@amazon.co.jp> Date: Wed, 27 Jan 2021 21:50:18 +0900 > The commit 41b14fb8724d ("net: Do not clear the sock TX queue in > sk_set_socket()") removes sk_tx_queue_clear() from sk_set_socket() and adds > it instead in sk_alloc() and sk_clone_lock() to fix an issue introduced in > the commit e022f0b4a03f ("net: Introduce sk_tx_queue_mapping"). However, > the original commit had already put sk_tx_queue_clear() in sk_prot_alloc(): > the callee of sk_alloc() and sk_clone_lock(). Thus sk_tx_queue_clear() is > called twice in each path currently. > > This patch removes the redundant calls of sk_tx_queue_clear() in sk_alloc() > and sk_clone_lock(). > > Fixes: 41b14fb8724d ("net: Do not clear the sock TX queue in sk_set_socket()") > CC: Tariq Toukan <tar...@mellanox.com> > CC: Boris Pismenny <bor...@mellanox.com> > Signed-off-by: Kuniyuki Iwashima <kun...@amazon.co.jp> > Reviewed-by: Amit Shah <a...@amazon.de>
I'm sorry, I have respun the v2 patch. So, please ignore v1. v2: https://lore.kernel.org/netdev/20210127132215.10842-1-kun...@amazon.co.jp/ Best regards, Kuniyuki