Skip to content
Commit 9dc02f41 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Greg Kroah-Hartman
Browse files

net/tls: split tls_rx_reader_lock

[ Upstream commit f9ae3204

 ]

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: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230726191556.41714-6-hare@suse.de
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Stable-dep-of: 419ce133

 ("tcp: allow again tcp_disconnect() when threads are waiting")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 76f96854
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment