From: Trond Myklebust Subject: Re: filesystem signal handling Date: Wed, 28 Apr 2004 13:05:46 -0400 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1083171946.2856.63.camel@lade.trondhjem.org> References: <1083097744.4780.20.camel@stevef95.austin.ibm.com> <1083165278.4694.12.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Steve French , linux-fsdevel@vger.kernel.org Return-path: Received: from dh132.citi.umich.edu ([141.211.133.132]:60800 "EHLO lade.trondhjem.org") by vger.kernel.org with ESMTP id S264974AbUD1RF6 (ORCPT ); Wed, 28 Apr 2004 13:05:58 -0400 To: David Woodhouse In-Reply-To: <1083165278.4694.12.camel@localhost.localdomain> List-Id: linux-fsdevel.vger.kernel.org On Wed, 2004-04-28 at 11:14, David Woodhouse wrote: > NFS does this. It's fairly ugly. What would be a _lot_ nicer if we could > have something in the task_struct which is vaguely reminiscent of > preempt_count, only it counts the number of reasons why this task cannot > receive signals. So instead of using the TASK_INTERRUPTIBLE and > TASK_UNINTERRUPTIBLE states to make the decision, we'd look at the > task's uninterruptible_count instead. The reason NFS has the scheme that it does is precisely *because* we want to set our own sigmask. The reason is that we'd like to respect SIGINT, SIGQUIT and SIGKILL as signalling that the user wants to interrupt the operation if and only if the "intr" mount flag has been set. Cheers, Trond