mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
0e0be63cb3
commit
24280d1d28
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user