Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275844
b: refs/heads/master
c: 1df6471
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang committed Nov 17, 2011
1 parent c97baab commit 8b5f7e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 499d05ecf990a7a7bbf9e0a273f9969f8ec69efc
refs/heads/master: 1df647197c5b8aacaeb58592cba9a1df322c9000
9 changes: 3 additions & 6 deletions trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,14 +1136,11 @@ static void balance_dirty_pages(struct address_space *mapping,
__set_current_state(TASK_KILLABLE);
io_schedule_timeout(pause);

dirty_thresh = hard_dirty_limit(dirty_thresh);
/*
* max-pause area. If dirty exceeded but still within this
* area, no need to sleep for more than 200ms: (a) 8 pages per
* 200ms is typically more than enough to curb heavy dirtiers;
* (b) the pause time limit makes the dirtiers more responsive.
* This is typically equal to (nr_dirty < dirty_thresh) and can
* also keep "1000+ dd on a slow USB stick" under control.
*/
if (nr_dirty < dirty_thresh)
if (task_ratelimit)
break;

if (fatal_signal_pending(current))
Expand Down

0 comments on commit 8b5f7e9

Please sign in to comment.