]> git.baikalelectronics.ru Git - kernel.git/commit
md/r5cache: handle FLUSH and FUA
authorSong Liu <songliubraving@fb.com>
Sat, 19 Nov 2016 00:46:50 +0000 (16:46 -0800)
committerShaohua Li <shli@fb.com>
Sat, 19 Nov 2016 01:13:49 +0000 (17:13 -0800)
commit4cf843bbbeb0843cc589401e8875ad7742401486
tree350e69ab8b594d2ce9eaa833e04294a939b8c044
parent57a943c58f5f7818b93882ac7f67b6035823c4d2
md/r5cache: handle FLUSH and FUA

With raid5 cache, we committing data from journal device. When
there is flush request, we need to flush journal device's cache.
This was not needed in raid5 journal, because we will flush the
journal before committing data to raid disks.

This is similar to FUA, except that we also need flush journal for
FUA. Otherwise, corruptions in earlier meta data will stop recovery
from reaching FUA data.

slightly changed the code by Shaohua

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c
drivers/md/raid5.c
drivers/md/raid5.h