net/tls: split tls_rx_reader_lock
Split tls_rx_reader_{lock,unlock} into an 'acquire/release' and
the actual locking part.
With that we can use the tls_rx_reader_lock in situations where
the socket is already locked.
Suggested-by:
Sagi Grimberg <sagi@grimberg.me>
Signed-off-by:
Hannes Reinecke <hare@suse.de>
Reviewed-by:
Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230726191556.41714-6-hare@suse.de
Signed-off-by:
Jakub Kicinski <kuba@kernel.org>
Loading
Please sign in to comment