[PATCH 3/3] Allow cifsd to suspend if connection is lost

From: Rafael J. Wysocki
Date: Thu Jul 27 2006 - 03:54:01 EST


Make cifsd allow us to suspend if it has lost the connection with the server.

Ref. http://bugzilla.kernel.org/show_bug.cgi?id=6811

Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx>
---
fs/cifs/connect.c | 1 +
1 file changed, 1 insertion(+)

Index: linux-2.6.18-rc2/fs/cifs/connect.c
===================================================================
--- linux-2.6.18-rc2.orig/fs/cifs/connect.c
+++ linux-2.6.18-rc2/fs/cifs/connect.c
@@ -182,6 +182,7 @@ cifs_reconnect(struct TCP_Server_Info *s

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/