From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH] fs: Make write(2) interruptible by a fatal signal Date: Thu, 1 Dec 2011 20:24:25 +0800 Message-ID: <20111201122425.GA16274@localhost> References: <1322735278-17420-1-git-send-email-jack@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: LKML , "linux-fsdevel@vger.kernel.org" , Andrew Morton , Linus Torvalds , Theodore Ts'o , Matthew Wilcox , Christoph Hellwig To: Jan Kara Return-path: Content-Disposition: inline In-Reply-To: <1322735278-17420-1-git-send-email-jack@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi, How are we going to do with this patch? > This patch makes write interruptible by SIGKILL. Let me try to summarize the objective impacts of (not) merging this patch, and would like to hear more opinions from experienced users. - w/o patch BEHAVIOR: write(2) insists to complete even when the user really wants to stop it. IMPACT: It could be annoying to experience slow responses to "kill -9" when it's a large write to a slow device, for example, dd if=/dev/zero of=/mnt/nokia/zero bs=100M - w/ patch BEHAVIOR: write(2) aborts quickly with possible partial write on SIGKILL IMPACT: The partial write might lead to data corruption somewhere, sometime (the possibility is low but real) and bring trouble to some users. Thanks, Fengguang