path: root/mm/backing-dev.c
diff options
authorPeter Zijlstra <>2007-10-16 23:25:41 -0700
committerLinus Torvalds <>2007-10-17 08:42:44 -0700
commitc4dc4beed23827e155d7cbc2a1ffa3949eddd194 (patch)
treeb7f115c159fe26b90b7e5b7d5dcf2f9318b69bf1 /mm/backing-dev.c
parent1f7d6668c29b1dfa307a44844f9bb38356fc989b (diff)
nfs: remove congestion_end()
These patches aim to improve balance_dirty_pages() and directly address three issues: 1) inter device starvation 2) stacked device deadlocks 3) inter process starvation 1 and 2 are a direct result from removing the global dirty limit and using per device dirty limits. By giving each device its own dirty limit is will no longer starve another device, and the cyclic dependancy on the dirty limit is broken. In order to efficiently distribute the dirty limit across the independant devices a floating proportion is used, this will allocate a share of the total limit proportional to the device's recent activity. 3 is done by also scaling the dirty limit proportional to the current task's recent dirty rate. This patch: nfs: remove congestion_end(). It's redundant, clear_bdi_congested() already wakes the waiters. Signed-off-by: Peter Zijlstra <> Cc: Trond Myklebust <> Cc: "J. Bruce Fields" <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/backing-dev.c')
1 files changed, 0 insertions, 13 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c
index f50a2811f9d..841901a9559 100644
--- a/mm/backing-dev.c
+++ b/mm/backing-dev.c
@@ -54,16 +54,3 @@ long congestion_wait(int rw, long timeout)
return ret;
- * congestion_end - wake up sleepers on a congested backing_dev_info
- * @rw: READ or WRITE
- */
-void congestion_end(int rw)
- wait_queue_head_t *wqh = &congestion_wqh[rw];
- if (waitqueue_active(wqh))
- wake_up(wqh);