From: Jan Kara Subject: Re: [PATCH 2/2] fs: Make write(2) interruptible by a signal Date: Tue, 29 Nov 2011 15:16:48 +0100 Message-ID: <20111129141648.GH5635@quack.suse.cz> References: <1321441935-6802-1-git-send-email-jack@suse.cz> <1321441935-6802-3-git-send-email-jack@suse.cz> <20111116114421.GA9098@localhost> <20111122142805.4e59faae.akpm@linux-foundation.org> <20111123090533.GA22420@localhost> <20111123130803.GD9775@quack.suse.cz> <20111123132758.GA25373@localhost> <7B2683F5-A926-44CA-9BA8-F71720E50A77@mit.edu> <20111128030842.GA2804@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Theodore Tso , Jan Kara , Andrew Morton , Christoph Hellwig , Al Viro , "linux-fsdevel@vger.kernel.org" , Kazuya Mio , Dmitry Monakhov , Matthew Wilcox To: Wu Fengguang Return-path: Received: from cantor2.suse.de ([195.135.220.15]:34270 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754760Ab1K2OQv (ORCPT ); Tue, 29 Nov 2011 09:16:51 -0500 Content-Disposition: inline In-Reply-To: <20111128030842.GA2804@localhost> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon 28-11-11 11:08:42, Wu Fengguang wrote: > On Wed, Nov 23, 2011 at 11:06:56PM +0800, Theodore Ts'o wrote: > > > > On Nov 23, 2011, at 8:27 AM, Wu Fengguang wrote: > > > > > > > > Reading Ted's information feed, I tend to disregard the partial write > > > issue: since the "broken" applications will already fail and get > > > punished in various other cases, I don't care adding one more penalty > > > case to them :-P > > > > Just wait until you have a bunch of rabid application programmers, > > questioning your judgement, your morality, and even your paternity. > > :-) > > Ah OK, that sounds frightening. Hmm, till now every one have > acknowledged the possibility of data corruption, only that > people have different perceptions of the severeness. > > Let's rethink things this way: "Is it a _worthwhile_ risk at all?" > I'm afraid not. Considering the origin of this patch > > [BUG] aborted ext4 leads to inifinity loop in balance_dirty_pages > http://www.spinics.net/lists/linux-ext4/msg28464.html > > I *think* Jan's first patch is already enough for fixing the bug. IWO > the patch we worried/discussed so much is really an optional one. I > would imagine the easy and safe solution is to just drop it. Any > objections? I still think aborting write is a cleaner solution. But I don't want to argue to death about this so if you still don't think it's a good idea, I'll respect your decision. Honza -- Jan Kara SUSE Labs, CR