mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Andrew Morton <akpm@osdl.org>
Cc: Pavel Machek <pavel@ucw.cz>, LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 3/3] Allow cifsd to suspend if connection is lost
Date: Thu, 27 Jul 2006 09:46:49 +0200	[thread overview]
Message-ID: <200607270946.49478.rjw@sisk.pl> (raw)
In-Reply-To: <200607270914.08774.rjw@sisk.pl>

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@sisk.pl>
---
 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 {


  parent reply	other threads:[~2006-07-27  7:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-27  7:14 [PATCH 0/3] swsusp-related fixes Rafael J. Wysocki
2006-07-27  7:41 ` [PATCH 2/3] Make suspend possible with a traced process at a breakpoint Rafael J. Wysocki
2006-07-27 11:16   ` Pavel Machek
2006-07-27  7:46 ` Rafael J. Wysocki [this message]
2006-07-27 11:10   ` [PATCH 3/3] Allow cifsd to suspend if connection is lost Pavel Machek
2006-07-27  7:52 ` [PATCH 1/3] Disable CPU hotplug during suspend Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200607270946.49478.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®