Re: [PATCH net-next v3 1/2] tls: annotate lockless access to sk->sk_err
From: Jakub Kicinski
Date: Thu Oct 15 2026 - 22:04:19 EST
On Sat, 10 Oct 2026 07:46:28 -0700 Quanye Yang via B4 Relay wrote:
> + if (has_copied) {
> + int err = READ_ONCE(sk->sk_err);
> +
> + if (err)
> + return -err;
> + } else {
> + int err = sock_error(sk);
> +
> + if (err)
> + return err;
the int err declaration force you to add ugly empty
lines, just decl skerr at the top level of the func
and use it here and in the chunk below
--
pw-bot: cr