From: Trond Myklebust Subject: Re: filesystem signal handling Date: Wed, 28 Apr 2004 16:31:03 -0400 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1083184262.2856.141.camel@lade.trondhjem.org> 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> <1083181437.2856.109.camel@lade.trondhjem.org> <20040428194714.GA2982@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: David Woodhouse , Steve French , linux-fsdevel@vger.kernel.org Return-path: Received: from dh132.citi.umich.edu ([141.211.133.132]:42636 "EHLO lade.trondhjem.org") by vger.kernel.org with ESMTP id S262046AbUD1UbE (ORCPT ); Wed, 28 Apr 2004 16:31:04 -0400 To: Jamie Lokier In-Reply-To: <20040428194714.GA2982@mail.shareable.org> List-Id: linux-fsdevel.vger.kernel.org On Wed, 2004-04-28 at 15:47, Jamie Lokier wrote: > Eh? When a signal is handled, that is done by aborting the current > kernel operation (e.g. read), returning to userspace, letting > userspace handle the signal, and then possibly restarting the aborted > operation by doing the system call again. > > How does re-entrancy come into it? Sorry, I worded that poorly: I didn't really mean "reentrant" (at least not in the usual sense of the word). I'm thinking rather about the case of non-idempotent operations such as open(O_EXCL), O_APPEND writes, rename(),... If the operation succeeds, but we interrupt the RPC call before the reply from the server has reached us, then restarting that operation will be very poorly defined indeed. Cheers, Trond