diff options
author | NeilBrown <neilb@suse.de> | 2009-09-23 10:10:29 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-09-23 10:10:29 +0200 |
commit | 3fa841d7e7266f6fcc1b3885b905f5153ba897d8 (patch) | |
tree | 7afa971a10eddcf52787340ea43fa1e910b5805b /drivers/md/linear.c | |
parent | md: Improve name of threads created by md_register_thread (diff) | |
download | linux-3fa841d7e7266f6fcc1b3885b905f5153ba897d8.tar.xz linux-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/linear.c')
-rw-r--r-- | drivers/md/linear.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c index ea4842905444..1ceceb334d5e 100644 --- a/drivers/md/linear.c +++ b/drivers/md/linear.c @@ -108,6 +108,9 @@ static int linear_congested(void *data, int bits) linear_conf_t *conf; int i, ret = 0; + if (mddev_congested(mddev, bits)) + return 1; + rcu_read_lock(); conf = rcu_dereference(mddev->private); |