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