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 e2bfdde commit 6f34633Copy full SHA for 6f34633
fs/cifs/connect.c
@@ -380,6 +380,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
380
try_to_freeze();
381
382
/* we should try only the port we connected to before */
383
+ mutex_lock(&server->srv_mutex);
384
rc = generic_ip_connect(server);
385
if (rc) {
386
cFYI(1, "reconnect error %d", rc);
@@ -391,6 +392,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
391
392
server->tcpStatus = CifsNeedNegotiate;
393
spin_unlock(&GlobalMid_Lock);
394
}
395
+ mutex_unlock(&server->srv_mutex);
396
} while (server->tcpStatus == CifsNeedReconnect);
397
398
return rc;
0 commit comments