]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: initialize next_checkpoint field before use
authorZhengyuan Liu <liuzhengyuan@kylinos.cn>
Mon, 24 Oct 2016 01:55:20 +0000 (09:55 +0800)
committerShaohua Li <shli@fb.com>
Mon, 24 Oct 2016 22:28:18 +0000 (15:28 -0700)
commit26858eeaf7a278795552ec4316adb54d88d0ed84
tree6b4d215745f50e64aee78d25cfbb77cb593c18cd
parent8197ef08c21724edc2b1d33af6597589f30734d6
md/raid5: initialize next_checkpoint field before use

No initial operation was done to this field when we
load/recovery the log, it got assignment only when IO
to raid disk was finished. So r5l_quiesce may use wrong
next_checkpoint to reclaim log space, that would make
reclaimable space calculation confused.

Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c