]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2021 22:58:05 +0000 (15:58 -0700)
commit5ed711adc9ef1434dfc74a854d1aec79efdcd9d7
tree79d371e6863c76af7cba97aa92fb4b6972cf899f
parent180731f9bc048b77596c7ad3e657170afc9014f5
net/tls: Replace TLS_RX_SYNC_RUNNING with RCU

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>
include/net/tls.h
net/tls/tls_device.c