Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2006-10-14 10:12:26 +0200
committerAdrian Bunk <bunk@stusta.de>2006-10-14 10:12:26 +0200
commit5360ce880ede2fd89dd4aad73af627879faae122 (patch)
treed62c3e03d5ff0e5756a926932374f0915bed1eb5
parentfd21c69ab8ab3e175f62fc09b38b1ab64e787f72 (diff)
[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> Signed-off-by: Steve French <sfrench@us.ibm.com> Signed-off-by: Adrian Bunk <bunk@stusta.de>
-rw-r--r--fs/cifs/connect.c1
1 files changed, 1 insertions, 0 deletions
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 {