We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5cc290 commit 9b8ace6Copy full SHA for 9b8ace6
fs/cifs/connect.c
@@ -377,6 +377,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
377
try_to_freeze();
378
379
/* we should try only the port we connected to before */
380
+ mutex_lock(&server->srv_mutex);
381
rc = generic_ip_connect(server);
382
if (rc) {
383
cifs_dbg(FYI, "reconnect error %d\n", rc);
@@ -388,6 +389,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
388
389
server->tcpStatus = CifsNeedNegotiate;
390
spin_unlock(&GlobalMid_Lock);
391
}
392
+ mutex_unlock(&server->srv_mutex);
393
} while (server->tcpStatus == CifsNeedReconnect);
394
395
return rc;
0 commit comments