diff options
author | Coly Li <colyli@suse.de> | 2019-11-13 09:03:23 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-13 23:42:50 +0100 |
commit | c5fcdedcee4e6ae15c0eb5e0fbe25467e57d2963 (patch) | |
tree | 43c13af43995fb936ab8a19012157445a3815f3a /drivers/md/bcache/bcache.h | |
parent | bcache: add code comments in bch_btree_leaf_dirty() (diff) | |
download | linux-c5fcdedcee4e6ae15c0eb5e0fbe25467e57d2963.tar.xz linux-c5fcdedcee4e6ae15c0eb5e0fbe25467e57d2963.zip |
bcache: add idle_max_writeback_rate sysfs interface
For writeback mode, if there is no regular I/O request for a while,
the writeback rate will be set to the maximum value (1TB/s for now).
This is good for most of the storage workload, but there are still
people don't what the maximum writeback rate in I/O idle time.
This patch adds a sysfs interface file idle_max_writeback_rate to
permit people to disable maximum writeback rate. Then the minimum
writeback rate can be advised by writeback_rate_minimum in the
bcache device's sysfs interface.
Reported-by: Christian Balzer <chibi@gol.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/bcache.h')
-rw-r--r-- | drivers/md/bcache/bcache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index 50241e045c70..9198c1b480d9 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -724,6 +724,7 @@ struct cache_set { unsigned int gc_always_rewrite:1; unsigned int shrinker_disabled:1; unsigned int copy_gc_enabled:1; + unsigned int idle_max_writeback_rate_enabled:1; #define BUCKET_HASH_BITS 12 struct hlist_head bucket_hash[1 << BUCKET_HASH_BITS]; |