From: David Woodhouse Subject: Re: filesystem signal handling Date: Thu, 29 Apr 2004 03:18:22 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1083205102.4694.39.camel@localhost.localdomain> References: <1083097744.4780.20.camel@stevef95.austin.ibm.com> <1083165278.4694.12.camel@localhost.localdomain> <1083171946.2856.63.camel@lade.trondhjem.org> <1083172459.4694.27.camel@localhost.localdomain> <1083173539.2856.90.camel@lade.trondhjem.org> <20040428192835.GA2836@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Trond Myklebust , Steve French , linux-fsdevel@vger.kernel.org Return-path: Received: from pentafluge.infradead.org ([213.86.99.235]:42725 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S262920AbUD2CSi (ORCPT ); Wed, 28 Apr 2004 22:18:38 -0400 To: Jamie Lokier In-Reply-To: <20040428192835.GA2836@mail.shareable.org> List-Id: linux-fsdevel.vger.kernel.org On Wed, 2004-04-28 at 20:28 +0100, Jamie Lokier wrote: > Trond Myklebust wrote: > > As for SIGINT vs SIGKILL - the only difference I can see is that the > > former can be generated directly from the keyboard. > > The other difference is that SIGINT can be intercepted by the > application to do cleanups or whatever; SIGKILL cannot. That was the difference I was thinking of -- since if they're not _handled_, all three of the mentioned signals remain fatal and hence the resulting behaviour is basically the same with either implementation. (playing with the mask vs. allowing only fatal signals). It's the case of a handled SIGINT during NFS operations which is potentially different. If that happens when a read() or write() is partially complete, what do we currently do? Is it really mandatory that we do handle the signal immediately rather than upon completion of the operation, or is this a corner case which nobody cares about? But I wasn't necessarily suggesting that NFS should change its behaviour, only offering a potential answer to the question which was posed, which was presumably for CIFS not NFS. -- dwmw2