From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Michael Buesch <fsdeveloper@yahoo.de>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
neilb@cse.unsw.edu.au, nfs@lists.sourceforge.net, "Lever,
Charles" <Charles.Lever@netapp.com>,
linux kernel mailing list <linux-kernel@vger.kernel.org>,
Zeev Fisher <Zeev.Fisher@il.marvell.com>
Subject: Re: [NFS] processes stuck in D state
Date: Tue, 6 May 2003 18:05:10 +0200 [thread overview]
Message-ID: <16055.56630.615496.19679@charged.uio.no> (raw)
In-Reply-To: <200305061742.14032.fsdeveloper@yahoo.de>
>>>>> " " == Michael Buesch <fsdeveloper@yahoo.de> writes:
> To reproduce the problem:
> - - mount some nfs from a server in your lan.
> - - Open an app, that uses the mounted fs. I've simply opened a
> konqueror-window for the directory where the nfs is mounted.
> - - shut down or crash the server or just pull the
> network-cable.
> - - Now the konqueror-process is nonkillable in D
> state. There's no
> chance to kill it.
Unless you are using the 'intr' or 'soft' mount flags, then that is
*documented and expected* behaviour.
It is true that even when using the 'intr' mount flag, you don't
always succeed in killing a task that is hanging on NFS. That is
usually due to the fact that it is waiting on some semaphore that is
held by another process. semaphores always sleep in the
TASK_UNINTERRUPTIBLE state, so they cannot be signalled.
Linus has suggested a solution to this problem: to set up a special
class of semaphores that are killable with 'SIGKILL', but doing that
(and then replacing all those semaphores in the VFS and VM) is not
going to happen before 2.7.x. at the earliest.
However, as I've mentioned on this list *many* times before: there
exists a workaround if you are wanting to kill all processes in order
to unmount the partition:
kill -9 all the processes.
kill -9 rpciod.
Cheers,
Trond
next prev parent reply other threads:[~2003-05-06 15:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200305061652.13280.fsdeveloper@yahoo.de>
[not found] ` <shsel3c85ks.fsf@charged.uio.no>
2003-05-06 15:41 ` Michael Buesch
2003-05-06 16:05 ` Trond Myklebust [this message]
2003-05-06 16:30 ` Michael Buesch
2003-05-06 16:54 ` Trond Myklebust
2003-05-06 17:32 ` Michael Buesch
2003-05-06 15:47 Lever, Charles
2003-05-06 15:56 ` Michael Buesch
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=16055.56630.615496.19679@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=Charles.Lever@netapp.com \
--cc=Zeev.Fisher@il.marvell.com \
--cc=fsdeveloper@yahoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
--cc=nfs@lists.sourceforge.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 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®