lkml.org 
[lkml]   [2010]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 05/17] writeback: quit throttling when signal pending
    This allows quick response to Ctrl-C etc. for impatient users.

    Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
    ---
    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



    \
     
     \ /
      Last update: 2010-09-12 18:01    [W:4.304 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site