net/tls: Replace TLS_RX_SYNC_RUNNING with RCU
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Tue, 1 Jun 2021 12:07:59 +0000 (15:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jun 2021 11:39:17 +0000 (13:39 +0200)
commit874ece252ed269f5ac1f55167a3f2735ab0f249f
treee98211a22064924325e346033c0c60a5913410c2
parenta5de17bb916a7f5b2e5b35a7c961ebee6d95bb28
net/tls: Replace TLS_RX_SYNC_RUNNING with RCU

[ Upstream commit 05fc8b6cbd4f979a6f25759c4a17dd5f657f7ecd ]

RCU synchronization is guaranteed to finish in finite time, unlike a
busy loop that polls a flag. This patch is a preparation for the bugfix
in the next patch, where the same synchronize_net() call will also be
used to sync with the TX datapath.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/tls.h
net/tls/tls_device.c