CIFS: SMBD: Upper layer destroys SMB Direct session on shutdown or umount
When upper layer wants to umount, make it call shutdown on transport when SMB Direct is used. Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
This commit is contained in:
Родитель
8ef130f9ec
Коммит
bce9ce7cc0
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче