From: Rafael J. Wysocki Date: Sat, 14 Oct 2006 08:12:26 +0000 (+0200) Subject: [CIFS] Allow cifsd to suspend if connection is lost X-Git-Tag: v2.6.16.30-rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5360ce880ede2fd89dd4aad73af627879faae122;p=people%2Fms%2Flinux.git [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 Signed-off-by: Steve French Signed-off-by: Adrian Bunk --- diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 2a0c1f4ca0ae..ddc51189ffea 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -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 {