Skip to content

Commit 6c3d890

Browse files
author
Steve French
committed
[CIFS] Allow cifsd to suspend if connection is lost
Make cifsd allow us to suspend if it has lost the connection with a server Ref: http://bugzilla.kernel.org/show_bug.cgi?id=6811 Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Steve French <sfrench@us.ibm.com> (cherry picked from 27bd6cd87b0ada66515ad49bc346d77d1e9d3e05 commit)
1 parent 5da07b0 commit 6c3d890

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/connect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
182182

183183
while ((server->tcpStatus != CifsExiting) && (server->tcpStatus != CifsGood))
184184
{
185+
try_to_freeze();
185186
if(server->protocolType == IPV6) {
186187
rc = ipv6_connect(&server->addr.sockAddr6,&server->ssocket);
187188
} else {

0 commit comments

Comments
 (0)