aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-09-23 18:10:29 +1000
committerNeilBrown <neilb@suse.de>2009-09-23 18:10:29 +1000
commit3fa841d7e7266f6fcc1b3885b905f5153ba897d8 (patch)
tree7afa971a10eddcf52787340ea43fa1e910b5805b /drivers/md/raid5.c
parentmd: Improve name of threads created by md_register_thread (diff)
downloadlinux-dev-3fa841d7e7266f6fcc1b3885b905f5153ba897d8.tar.xz
linux-dev-3fa841d7e7266f6fcc1b3885b905f5153ba897d8.zip
md: report device as congested when suspended
This should writeback from coming when the device is temporarily suspended. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index bee3573ed1bd..9db84c98a41d 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3332,6 +3332,9 @@ static int raid5_congested(void *data, int bits)
/* No difference between reads and writes. Just check
* how busy the stripe_cache is
*/
+
+ if (mddev_congested(mddev, bits))
+ return 1;
if (conf->inactive_blocked)
return 1;
if (conf->quiesce)