Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276632
b: refs/heads/master
c: c5c6343
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang committed Dec 8, 2011
1 parent 6a9c0d0 commit ec308f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aed21ad28b1323b2807faea019e5ac388a7bc837
refs/heads/master: c5c6343c4d75f9d3226e05a72e7861e967fc8099
13 changes: 13 additions & 0 deletions trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,19 @@ static void balance_dirty_pages(struct address_space *mapping,
if (task_ratelimit)
break;

/*
* In the case of an unresponding NFS server and the NFS dirty
* pages exceeds dirty_thresh, give the other good bdi's a pipe
* to go through, so that tasks on them still remain responsive.
*
* In theory 1 page is enough to keep the comsumer-producer
* pipe going: the flusher cleans 1 page => the task dirties 1
* more page. However bdi_dirty has accounting errors. So use
* the larger and more IO friendly bdi_stat_error.
*/
if (bdi_dirty <= bdi_stat_error(bdi))
break;

if (fatal_signal_pending(current))
break;
}
Expand Down

0 comments on commit ec308f3

Please sign in to comment.