From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754245Ab0IMBzh (ORCPT ); Sun, 12 Sep 2010 21:55:37 -0400 Received: from mga09.intel.com ([134.134.136.24]:65476 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753530Ab0IMBzg (ORCPT ); Sun, 12 Sep 2010 21:55:36 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.56,356,1280732400"; d="scan'208";a="656585528" Date: Mon, 13 Sep 2010 09:55:29 +0800 From: Wu Fengguang To: Neil Brown Cc: linux-mm , LKML , Andrew Morton , "Theodore Ts'o" , Dave Chinner , Jan Kara , Peter Zijlstra , Mel Gorman , Rik van Riel , KOSAKI Motohiro , Chris Mason , Christoph Hellwig , "Li, Shaohua" Subject: Re: [PATCH 05/17] writeback: quit throttling when signal pending Message-ID: <20100913015529.GB5312@localhost> References: <20100912154945.758129106@intel.com> <20100912155203.355459925@intel.com> <20100913064654.3cce885c@notabene> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100913064654.3cce885c@notabene> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2010 at 04:46:54AM +0800, Neil Brown wrote: > On Sun, 12 Sep 2010 23:49:50 +0800 > Wu Fengguang wrote: > > > This allows quick response to Ctrl-C etc. for impatient users. > > > > Signed-off-by: Wu Fengguang > > --- > > mm/page-writeback.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > --- linux-next.orig/mm/page-writeback.c 2010-09-09 16:01:14.000000000 +0800 > > +++ linux-next/mm/page-writeback.c 2010-09-09 16:02:27.000000000 +0800 > > @@ -553,6 +553,9 @@ static void balance_dirty_pages(struct a > > __set_current_state(TASK_INTERRUPTIBLE); > > io_schedule_timeout(pause); > > > > + if (signal_pending(current)) > > + break; > > + > > Given the patch description, I think you might want "fatal_signal_pending()" > here ??? __fatal_signal_pending() tests SIGKILL only, while the one often used and need more quick responding is SIGINT.. Thanks, Fengguang