diff options
author | Song Liu <songliubraving@fb.com> | 2016-11-17 15:24:41 -0800 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-11-18 13:27:24 -0800 |
commit | 2c7da14b90a01e48b17a028de6050a796cfd6d8d (patch) | |
tree | 69f8c6710e71f270146978d7e99744962a5eadc8 /drivers/md/raid5.c | |
parent | a39f7afde358ca89e9fc09a5525d3f8631a98a3a (diff) | |
download | linux-stable-2c7da14b90a01e48b17a028de6050a796cfd6d8d.tar.gz linux-stable-2c7da14b90a01e48b17a028de6050a796cfd6d8d.tar.bz2 linux-stable-2c7da14b90a01e48b17a028de6050a796cfd6d8d.zip |
md/r5cache: sysfs entry journal_mode
With write cache, journal_mode is the knob to switch between
write-back and write-through.
Below is an example:
root@virt-test:~/# cat /sys/block/md0/md/journal_mode
[write-through] write-back
root@virt-test:~/# echo write-back > /sys/block/md0/md/journal_mode
root@virt-test:~/# cat /sys/block/md0/md/journal_mode
write-through [write-back]
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 90638ba67812..17cf98e93307 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -6319,6 +6319,7 @@ static struct attribute *raid5_attrs[] = { &raid5_group_thread_cnt.attr, &raid5_skip_copy.attr, &raid5_rmw_level.attr, + &r5c_journal_mode.attr, NULL, }; static struct attribute_group raid5_attrs_group = { |