]> git.ipfire.org Git - people/ms/linux.git/commitdiff
[CIFS] Allow cifsd to suspend if connection is lost
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 14 Oct 2006 08:12:26 +0000 (10:12 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 14 Oct 2006 08:12:26 +0000 (10:12 +0200)
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>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
fs/cifs/connect.c

index 2a0c1f4ca0ae9ba19badbeaa7290592c20c69bb0..ddc51189ffead4c642cba235a87b34e4147a2ee7 100644 (file)
@@ -188,6 +188,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
 
        while ((server->tcpStatus != CifsExiting) && (server->tcpStatus != CifsGood))
        {
+               try_to_freeze();
                if(server->protocolType == IPV6) {
                        rc = ipv6_connect(&server->addr.sockAddr6,&server->ssocket);
                } else {