diff options
author | 2017-03-22 17:44:38 +0100 | |
---|---|---|
committer | 2017-03-27 12:08:07 -0400 | |
commit | 6e53636fe81465d6810f4e0910e7238edf12a133 (patch) | |
tree | 38be83f8fc4476c3fb4debce0b8135ed07854c1c /drivers/md/dm-cache-target.c | |
parent | dm raid: fix table line argument order in status (diff) | |
download | wireguard-linux-6e53636fe81465d6810f4e0910e7238edf12a133.tar.xz wireguard-linux-6e53636fe81465d6810f4e0910e7238edf12a133.zip |
dm raid: add raid4/5/6 journal write-back support via journal_mode option
Commit 63c32ed4afc ("dm raid: add raid4/5/6 journaling support") added
journal support to close the raid4/5/6 "write hole" -- in terms of
writethrough caching.
Introduce a "journal_mode" feature and use the new
r5c_journal_mode_set() API to add support for switching the journal
device's cache mode between write-through (the current default) and
write-back.
NOTE: If the journal device is not layered on resilent storage and it
fails, write-through mode will cause the "write hole" to reoccur. But
if the journal fails while in write-back mode it will cause data loss
for any dirty cache entries unless resilent storage is used for the
journal.
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-target.c')
0 files changed, 0 insertions, 0 deletions