Skip to content

Commit

Permalink
CIFS: SMBD: Upper layer destroys SMB Direct session on shutdown or um…
Browse files Browse the repository at this point in the history
…ount

When upper layer wants to umount, make it call shutdown on transport when
SMB Direct is used.

Signed-off-by: Long Li <[email protected]>
Signed-off-by: Steve French <[email protected]>
Reviewed-by: Pavel Shilovsky <[email protected]>
Reviewed-by: Ronnie Sahlberg <[email protected]>
  • Loading branch information
longlimsft authored and smfrench committed Jan 25, 2018
1 parent 8ef130f commit bce9ce7
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 @@ -704,7 +704,10 @@ static void clean_demultiplex_info(struct TCP_Server_Info *server)
wake_up_all(&server->request_q);
/* give those requests time to exit */
msleep(125);

if (cifs_rdma_enabled(server) && server->smbd_conn) {
smbd_destroy(server->smbd_conn);
server->smbd_conn = NULL;
}
if (server->ssocket) {
sock_release(server->ssocket);
server->ssocket = NULL;
Expand Down

0 comments on commit bce9ce7

Please sign in to comment.