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/md.h | |
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/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 f55d2ff95133..f184b69ef337 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); |