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 8d1c1a3 commit b11dc97Copy full SHA for b11dc97
fs/cifs/connect.c
@@ -362,6 +362,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
362
try_to_freeze();
363
364
/* we should try only the port we connected to before */
365
+ mutex_lock(&server->srv_mutex);
366
rc = generic_ip_connect(server);
367
if (rc) {
368
cFYI(1, "reconnect error %d", rc);
@@ -373,6 +374,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
373
374
server->tcpStatus = CifsNeedNegotiate;
375
spin_unlock(&GlobalMid_Lock);
376
}
377
+ mutex_unlock(&server->srv_mutex);
378
} while (server->tcpStatus == CifsNeedReconnect);
379
380
return rc;
0 commit comments