]> 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)
commit9469a50cf354b92118cee26b74f8d5aad077ec01
tree350e69ab8b594d2ce9eaa833e04294a939b8c044
parent9803efbd3d5a89e6b183df2712ba8d05cab093ee
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