drbd: use sk_set_nospace()

Use the new helpers instead of open coding the SOCK_NOSPACE
manipulation, so that TCP can later maintain a cheaper private
copy of this bit.

No functional change intended.

Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Eric Dumazet <edumazet@kernel.org>
Acked-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://patch.msgid.link/20260929071743.23624-7-edumazet@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Eric Dumazet 2026-09-29 07:17:40 +00:00 committed by Jakub Kicinski
parent 0e0be63cb3
commit 24280d1d28

View File

@ -635,8 +635,7 @@ static int make_resync_request(struct drbd_peer_device *const peer_device, int c
int sndbuf = sk->sk_sndbuf;
if (queued > sndbuf / 2) {
requeue = 1;
if (sk->sk_socket)
set_bit(SOCK_NOSPACE, &sk->sk_socket->flags);
sk_set_nospace(sk);
}
} else
requeue = 1;