@@ -205,15 +205,15 @@ static int smbd_conn_upcall(
205
205
case RDMA_CM_EVENT_ESTABLISHED :
206
206
log_rdma_event (INFO , "connected event=%s\n" , event_name );
207
207
sc -> status = SMBDIRECT_SOCKET_CONNECTED ;
208
- wake_up_interruptible (& info -> conn_wait );
208
+ wake_up_interruptible (& info -> status_wait );
209
209
break ;
210
210
211
211
case RDMA_CM_EVENT_CONNECT_ERROR :
212
212
case RDMA_CM_EVENT_UNREACHABLE :
213
213
case RDMA_CM_EVENT_REJECTED :
214
214
log_rdma_event (ERR , "connecting failed event=%s\n" , event_name );
215
215
sc -> status = SMBDIRECT_SOCKET_DISCONNECTED ;
216
- wake_up_interruptible (& info -> conn_wait );
216
+ wake_up_interruptible (& info -> status_wait );
217
217
break ;
218
218
219
219
case RDMA_CM_EVENT_DEVICE_REMOVAL :
@@ -222,12 +222,12 @@ static int smbd_conn_upcall(
222
222
if (sc -> status == SMBDIRECT_SOCKET_NEGOTIATE_FAILED ) {
223
223
log_rdma_event (ERR , "event=%s during negotiation\n" , event_name );
224
224
sc -> status = SMBDIRECT_SOCKET_DISCONNECTED ;
225
- wake_up (& info -> conn_wait );
225
+ wake_up (& info -> status_wait );
226
226
break ;
227
227
}
228
228
229
229
sc -> status = SMBDIRECT_SOCKET_DISCONNECTED ;
230
- wake_up_interruptible (& info -> disconn_wait );
230
+ wake_up_interruptible (& info -> status_wait );
231
231
wake_up_interruptible (& sc -> recv_io .reassembly .wait_queue );
232
232
wake_up_interruptible_all (& info -> wait_send_queue );
233
233
break ;
@@ -1325,7 +1325,7 @@ void smbd_destroy(struct TCP_Server_Info *server)
1325
1325
rdma_disconnect (sc -> rdma .cm_id );
1326
1326
log_rdma_event (INFO , "wait for transport being disconnected\n" );
1327
1327
wait_event_interruptible (
1328
- info -> disconn_wait ,
1328
+ info -> status_wait ,
1329
1329
sc -> status == SMBDIRECT_SOCKET_DISCONNECTED );
1330
1330
}
1331
1331
@@ -1650,8 +1650,7 @@ static struct smbd_connection *_smbd_get_connection(
1650
1650
log_rdma_event (INFO , "connecting to IP %pI4 port %d\n" ,
1651
1651
& addr_in -> sin_addr , port );
1652
1652
1653
- init_waitqueue_head (& info -> conn_wait );
1654
- init_waitqueue_head (& info -> disconn_wait );
1653
+ init_waitqueue_head (& info -> status_wait );
1655
1654
init_waitqueue_head (& sc -> recv_io .reassembly .wait_queue );
1656
1655
rc = rdma_connect (sc -> rdma .cm_id , & conn_param );
1657
1656
if (rc ) {
@@ -1660,7 +1659,7 @@ static struct smbd_connection *_smbd_get_connection(
1660
1659
}
1661
1660
1662
1661
wait_event_interruptible_timeout (
1663
- info -> conn_wait ,
1662
+ info -> status_wait ,
1664
1663
sc -> status != SMBDIRECT_SOCKET_CONNECTING ,
1665
1664
msecs_to_jiffies (RDMA_RESOLVE_TIMEOUT ));
1666
1665
@@ -1717,7 +1716,7 @@ static struct smbd_connection *_smbd_get_connection(
1717
1716
destroy_caches_and_workqueue (info );
1718
1717
sc -> status = SMBDIRECT_SOCKET_NEGOTIATE_FAILED ;
1719
1718
rdma_disconnect (sc -> rdma .cm_id );
1720
- wait_event (info -> conn_wait ,
1719
+ wait_event (info -> status_wait ,
1721
1720
sc -> status == SMBDIRECT_SOCKET_DISCONNECTED );
1722
1721
1723
1722
allocate_cache_failed :
0 commit comments