Skip to content

Commit

Permalink
CIFS: SMBD: Upper layer reconnects to SMB Direct session
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
longlimsft authored and smfrench committed Jan 25, 2018
1 parent ad57b8e commit 781a805
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,10 @@ cifs_reconnect(struct TCP_Server_Info *server)

/* we should try only the port we connected to before */
mutex_lock(&server->srv_mutex);
rc = generic_ip_connect(server);
if (cifs_rdma_enabled(server))
rc = smbd_reconnect(server);
else
rc = generic_ip_connect(server);
if (rc) {
cifs_dbg(FYI, "reconnect error %d\n", rc);
mutex_unlock(&server->srv_mutex);
Expand Down

0 comments on commit 781a805

Please sign in to comment.