From: Trond Myklebust Subject: Re: processes stuck in D state Date: Tue, 6 May 2003 18:05:10 +0200 Sender: nfs-admin@lists.sourceforge.net Message-ID: <16055.56630.615496.19679@charged.uio.no> References: <200305061652.13280.fsdeveloper@yahoo.de> <200305061742.14032.fsdeveloper@yahoo.de> Reply-To: trond.myklebust@fys.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Trond Myklebust , neilb@cse.unsw.edu.au, nfs@lists.sourceforge.net, "Lever, Charles" , linux kernel mailing list , Zeev Fisher Return-path: Received: from pat.uio.no ([129.240.130.16]) by sc8-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 19D4wl-0005if-00 for ; Tue, 06 May 2003 09:05:40 -0700 To: Michael Buesch In-Reply-To: <200305061742.14032.fsdeveloper@yahoo.de> Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: >>>>> " " == Michael Buesch 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 ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs