diff options
author | NeilBrown <neilb@suse.de> | 2009-09-23 18:10:29 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-09-23 18:10:29 +1000 |
commit | 3fa841d7e7266f6fcc1b3885b905f5153ba897d8 (patch) | |
tree | 7afa971a10eddcf52787340ea43fa1e910b5805b /drivers/md/md.h | |
parent | 0da3c6194ec2f32617b272df4505a1cf022faea5 (diff) | |
download | op-kernel-dev-3fa841d7e7266f6fcc1b3885b905f5153ba897d8.zip op-kernel-dev-3fa841d7e7266f6fcc1b3885b905f5153ba897d8.tar.gz |
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/md.h')
-rw-r--r-- | drivers/md/md.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index f55d2ff..f184b69 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -430,6 +430,7 @@ extern void md_write_end(mddev_t *mddev); extern void md_done_sync(mddev_t *mddev, int blocks, int ok); extern void md_error(mddev_t *mddev, mdk_rdev_t *rdev); +extern int mddev_congested(mddev_t *mddev, int bits); extern void md_super_write(mddev_t *mddev, mdk_rdev_t *rdev, sector_t sector, int size, struct page *page); extern void md_super_wait(mddev_t *mddev); |