All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Kirch <okir@suse.de>
To: "Lever, Charles" <Charles.Lever@netapp.com>
Cc: Wade Hampton <wade.hampton@nsc1.net>, nfs@lists.sourceforge.net
Subject: Re: df hangs on down nfs server mounted with hard,intr, can't kill
Date: Wed, 10 Mar 2004 09:09:10 +0100	[thread overview]
Message-ID: <20040310080910.GA21031@suse.de> (raw)
In-Reply-To: <482A3FA0050D21419C269D13989C61130435DD25@lavender-fe.eng.netapp.com>

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

On Tue, Mar 09, 2004 at 11:51:10AM -0800, Lever, Charles wrote:
> the fact that "intr" doesn't work as expected is a bug, and
> folks are attempting to address this at least partially in 2.6.

FWIW, attached you'll find the patch I'm currently using.
I thought I had posted it to this list already.

BTW what is the "right" way to get stuff like this into the mainline
kernel? Trond, are you collecting stuff and pushing it to Andrew, or
should I be sending patches to him directly?

Olaf
-- 
Olaf Kirch     |  Stop wasting entropy - start using predictable
okir@suse.de   |  tempfile names today!
---------------+ 

[-- Attachment #2: nfs-interruptible --]
[-- Type: text/plain, Size: 1582 bytes --]

--- linux-2.6.2/net/sunrpc/sched.c.orig	2004-02-06 23:11:55.000000000 +0100
+++ linux-2.6.2/net/sunrpc/sched.c	2004-02-06 23:19:59.000000000 +0100
@@ -554,21 +554,28 @@
 			if (current->pid == rpciod_pid)
 				printk(KERN_ERR "RPC: rpciod waiting on sync task!\n");
 
-			__wait_event(task->tk_wait, !RPC_IS_SLEEPING(task));
-			dprintk("RPC: %4d sync task resuming\n", task->tk_pid);
-
-			/*
-			 * When a sync task receives a signal, it exits with
-			 * -ERESTARTSYS. In order to catch any callbacks that
-			 * clean up after sleeping on some queue, we don't
-			 * break the loop here, but go around once more.
-			 */
-			if (task->tk_client->cl_intr && signalled()) {
-				dprintk("RPC: %4d got signal\n", task->tk_pid);
-				task->tk_flags |= RPC_TASK_KILLED;
-				rpc_exit(task, -ERESTARTSYS);
-				rpc_wake_up_task(task);
+			if (!task->tk_client->cl_intr) {
+				__wait_event(task->tk_wait, !RPC_IS_SLEEPING(task));
+			} else {
+				__wait_event_interruptible(task->tk_wait,
+					       	!RPC_IS_SLEEPING(task), status);
+
+				/*
+				 * When a sync task receives a signal, it exits with
+				 * -ERESTARTSYS. In order to catch any callbacks that
+				 * clean up after sleeping on some queue, we don't
+				 * break the outer loop here, but go around once more.
+				 */
+				if (status == -ERESTARTSYS) {
+					dprintk("RPC: %4d got signal\n", task->tk_pid);
+					task->tk_flags |= RPC_TASK_KILLED;
+					rpc_exit(task, -ERESTARTSYS);
+					rpc_wake_up_task(task);
+					break;
+				}
 			}
+
+			dprintk("RPC: %4d sync task resuming\n", task->tk_pid);
 		}
 	}
 

  parent reply	other threads:[~2004-03-10  8:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-09 19:51 df hangs on down nfs server mounted with hard,intr, can't kill Lever, Charles
2004-03-09 20:08 ` Wade Hampton
2004-03-10  8:09 ` Olaf Kirch [this message]
2004-03-10 19:18   ` Trond Myklebust
2004-03-11  9:31     ` Olaf Kirch
2004-03-11 19:44       ` Trond Myklebust
2004-03-12  8:54         ` Olaf Kirch
2004-03-15  5:21     ` Yusuf Goolamabbas
2004-03-15 17:03       ` Trond Myklebust
2004-03-15 18:15         ` Steve Dickson
  -- strict thread matches above, loose matches on Subject: below --
2004-03-15 22:57 df hangs on down nfs server mounted with hard,intr,can't kill Lever, Charles
2004-03-16  2:26 ` Steve Dickson
2004-03-09 19:33 df hangs on down nfs server mounted with hard,intr, can't kill Wade Hampton
2004-03-10  2:40 ` Ian Kent

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=20040310080910.GA21031@suse.de \
    --to=okir@suse.de \
    --cc=Charles.Lever@netapp.com \
    --cc=nfs@lists.sourceforge.net \
    --cc=wade.hampton@nsc1.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.