diff options
author | Paul Clements <paul.clements@steeleye.com> | 2010-03-08 06:02:37 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 07:27:46 +0200 |
commit | 696fcd535b5a8cfc0617e9cf1d9d69a13895cc1e (patch) | |
tree | b9f55833c83a41a6e047f0de82b17d9753ad0542 /drivers/md/bitmap.h | |
parent | md: remove some dead fields from mddev_s (diff) | |
download | linux-696fcd535b5a8cfc0617e9cf1d9d69a13895cc1e.tar.xz linux-696fcd535b5a8cfc0617e9cf1d9d69a13895cc1e.zip |
md: expose max value of behind writes counter
Keep track of the maximum number of concurrent write-behind requests
for an md array and exposed this number in sysfs at
md/bitmap/max_backlog_used
Writing any value to this file will clear it.
This allows userspace to be involved in tuning bitmap/backlog.
Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/bitmap.h')
-rw-r--r-- | drivers/md/bitmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bitmap.h b/drivers/md/bitmap.h index cb821d76d1b4..aa82b7caa85f 100644 --- a/drivers/md/bitmap.h +++ b/drivers/md/bitmap.h @@ -227,6 +227,7 @@ struct bitmap { int allclean; atomic_t behind_writes; + unsigned long behind_writes_used; /* highest actual value at runtime */ /* * the bitmap daemon - periodically wakes up and sweeps the bitmap |