net: rps: protect last_qtail with rps_input_queue_tail_save() helper
authorJason Xing <kernelxing@tencent.com>
Thu, 18 Apr 2024 07:36:01 +0000 (15:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2024 10:38:03 +0000 (11:38 +0100)
commit84b6823cd96b38c40b3b30beabbfa48d92990e1a
treeedd7dbf59b412cba1c4afa0180f33df18e84b8ac
parent00ac0dc347dc2d557ba7a1da289708943a3ac5a7
net: rps: protect last_qtail with rps_input_queue_tail_save() helper

Removing one unnecessary reader protection and add another writer
protection to finish the locklessly proctection job.

Note: the removed READ_ONCE() is not needed because we only have to protect
the locklessly reader in the different context (rps_may_expire_flow()).

Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c