diff options
author | Paul Clements <paul.clements@steeleye.com> | 2010-03-08 00:02:37 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 01:27:46 -0400 |
commit | 696fcd535b5a8cfc0617e9cf1d9d69a13895cc1e (patch) | |
tree | b9f55833c83a41a6e047f0de82b17d9753ad0542 /drivers/md/bitmap.h | |
parent | ee8b81b03dffa1c0075553d01c557714aedb85a1 (diff) |
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 { | |||
227 | int allclean; | 227 | int allclean; |
228 | 228 | ||
229 | atomic_t behind_writes; | 229 | atomic_t behind_writes; |
230 | unsigned long behind_writes_used; /* highest actual value at runtime */ | ||
230 | 231 | ||
231 | /* | 232 | /* |
232 | * the bitmap daemon - periodically wakes up and sweeps the bitmap | 233 | * the bitmap daemon - periodically wakes up and sweeps the bitmap |