md: add raid4/5/6 journal mode switching API
authorHeinz Mauelshagen <heinzm@redhat.com>
Wed, 22 Mar 2017 16:44:37 +0000 (17:44 +0100)
committerMike Snitzer <snitzer@redhat.com>
Mon, 27 Mar 2017 15:13:47 +0000 (11:13 -0400)
commit78e470c26f524f4706c2555613b9641d85190cbe
treedfc665acd9116cb93a2c11809758c13352950b62
parentff3af92b4461be773337111daea80bb91b2cd545
md: add raid4/5/6 journal mode switching API

Commit 2ded370373a4 ("md/r5cache: State machine for raid5-cache write
back mode") added support for "write-back" caching on the raid journal
device.

In order to allow the dm-raid target to switch between the available
"write-through" and "write-back" modes, provide a new
r5c_journal_mode_set() API.

Use the new API in existing r5c_journal_mode_store()

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Acked-by: Shaohua Li <shli@fb.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/raid5-cache.c
drivers/md/raid5.h