hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/net/rds/tcp_connect.c
....@@ -169,7 +169,7 @@
169169 * own the socket
170170 */
171171 rds_tcp_set_callbacks(sock, cp);
172
- ret = sock->ops->connect(sock, addr, addrlen, O_NONBLOCK);
172
+ ret = kernel_connect(sock, addr, addrlen, O_NONBLOCK);
173173
174174 rdsdebug("connect to address %pI6c returned %d\n", &conn->c_faddr, ret);
175175 if (ret == -EINPROGRESS)
....@@ -207,7 +207,7 @@
207207
208208 if (sock) {
209209 if (rds_destroy_pending(cp->cp_conn))
210
- rds_tcp_set_linger(sock);
210
+ sock_no_linger(sock->sk);
211211 sock->ops->shutdown(sock, RCV_SHUTDOWN | SEND_SHUTDOWN);
212212 lock_sock(sock->sk);
213213 rds_tcp_restore_callbacks(sock, tc); /* tc->tc_sock = NULL */