From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 204656B0083 for ; Sun, 12 Sep 2010 11:55:01 -0400 (EDT) Message-Id: <20100912155203.355459925@intel.com> Date: Sun, 12 Sep 2010 23:49:50 +0800 From: Wu Fengguang Subject: [PATCH 05/17] writeback: quit throttling when signal pending References: <20100912154945.758129106@intel.com> Content-Disposition: inline; filename=writeback-break-on-signal-pending.patch Sender: owner-linux-mm@kvack.org To: linux-mm Cc: LKML , Wu Fengguang , Andrew Morton , Theodore Ts'o , Dave Chinner , Jan Kara , Peter Zijlstra , Mel Gorman , Rik van Riel , KOSAKI Motohiro , Chris Mason , Christoph Hellwig , Li Shaohua List-ID: 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; + check_exceeded: /* * The bdi thresh is somehow "soft" limit derived from the -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org