summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-07-31 22:46:20 +0000
committerSteve French <sfrench@us.ibm.com>2006-08-11 21:28:26 +0000
commit6c3d8909d85b2c18fd7a6e64f0ca757a257b40fa (patch)
tree731c94d9ea4260d8f732f101f2f5e14d4c7fdc26 /fs/cifs
parent5da07b0208066fd3544ecf2b521fc7a2e0228ad5 (diff)
downloadop-kernel-dev-6c3d8909d85b2c18fd7a6e64f0ca757a257b40fa.zip
op-kernel-dev-6c3d8909d85b2c18fd7a6e64f0ca757a257b40fa.tar.gz
[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)
Diffstat (limited to 'fs/cifs')
-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 c4aedcf..b706b4f 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -182,6 +182,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 {
OpenPOWER on IntegriCloud