From: Shunichi Sagawa Subject: Re: kernel 2.4 The process hang on NFS Date: Fri, 16 Dec 2005 15:40:55 +0900 Message-ID: <20051216154055.7f369762.s-sagawa@jp.fujitsu.com> References: <20051215195925.475aee2c.s-sagawa@jp.fujitsu.com> <1134655845.7954.4.camel@lade.trondhjem.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1En9Ev-00050z-26 for nfs@lists.sourceforge.net; Thu, 15 Dec 2005 22:38:49 -0800 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1En9Et-0001u1-Ju for nfs@lists.sourceforge.net; Thu, 15 Dec 2005 22:38:49 -0800 To: Trond Myklebust In-Reply-To: <1134655845.7954.4.camel@lade.trondhjem.org> Sender: nfs-admin@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: On Thu, 15 Dec 2005 09:10:45 -0500 Trond Myklebust wrote: > On Thu, 2005-12-15 at 19:59 +0900, Shunichi Sagawa wrote: > > Hello, > > > > In the multithreaded NFS access program, > > "Ctrl + C" causes the process hang. > > > > 498 static int > > 499 __rpc_execute(struct rpc_task *task) > > 500 { > > : > > 560 while (RPC_IS_SLEEPING(task)) { > > 561 /* sync task: sleep here */ > > 562 dprintk("RPC: %4d sync task going to sleepn", > > 563 task->tk_pid); > > 564 if (current->pid == rpciod_pid) > > 565 printk(KERN_ERR "RPC: rpciod waiting on sync task!n"); > > 566 > > 567 __wait_event(task->tk_wait, !RPC_IS_SLEEPING(task)); <= here > > > > > > Even though a task receives a signal, __wait_event() does not resume the task. > > I think that __wait_event_interruptible() should be used instead of __wait_event(). > > > > Is it right? > > Yes. See the 2.6 kernels, which have fixed this. Do you have a plan to fix this problem on kernel 2.4? And, in kernel 2.4, only have to change __wait_event() to wait_event_interruptible() ? Best Regards, Sagawa. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs