Skip to content

Commit 781a805

Browse files
longlimsftsmfrench
authored andcommitted
CIFS: SMBD: Upper layer reconnects to SMB Direct session
Do a reconnect on SMB Direct when it is used as the connection. Reconnect can happen for many reasons and it's mostly the decision of SMB2 upper layer. Signed-off-by: Long Li <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Ronnie Sahlberg <[email protected]> Reviewed-by: Pavel Shilovsky <[email protected]>
1 parent ad57b8e commit 781a805

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/cifs/connect.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,10 @@ cifs_reconnect(struct TCP_Server_Info *server)
406406

407407
/* we should try only the port we connected to before */
408408
mutex_lock(&server->srv_mutex);
409-
rc = generic_ip_connect(server);
409+
if (cifs_rdma_enabled(server))
410+
rc = smbd_reconnect(server);
411+
else
412+
rc = generic_ip_connect(server);
410413
if (rc) {
411414
cifs_dbg(FYI, "reconnect error %d\n", rc);
412415
mutex_unlock(&server->srv_mutex);

0 commit comments

Comments
 (0)