mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
rds: 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: Allison Henderson <achender@kernel.org> Link: https://patch.msgid.link/20260929071743.23624-5-edumazet@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
28613c4d47
commit
b747807cca
|
|
@ -100,7 +100,7 @@ int rds_tcp_xmit(struct rds_connection *conn, struct rds_message *rm,
|
|||
|
||||
if (hdr_off < sizeof(struct rds_header)) {
|
||||
/* see rds_tcp_write_space() */
|
||||
set_bit(SOCK_NOSPACE, &tc->t_sock->sk->sk_socket->flags);
|
||||
sk_set_nospace(tc->t_sock->sk);
|
||||
|
||||
ret = rds_tcp_sendmsg(tc->t_sock,
|
||||
(void *)&rm->m_inc.i_hdr + hdr_off,
|
||||
|
|
@ -221,6 +221,5 @@ void rds_tcp_write_space(struct sock *sk)
|
|||
*/
|
||||
write_space(sk);
|
||||
|
||||
if (sk->sk_socket)
|
||||
set_bit(SOCK_NOSPACE, &sk->sk_socket->flags);
|
||||
sk_set_nospace(sk);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user