diff options
author | Zhengyuan Liu <liuzhengyuan@kylinos.cn> | 2016-12-04 09:49:44 +0100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-12-06 02:11:02 +0100 |
commit | 3d7e7e1d9db048bc6c1503bca9c82193450fc476 (patch) | |
tree | a9f0729aae90a6974822263329fac7e33e6f7852 /kernel | |
parent | md/raid5-cache: adjust the write position of the empty block if no data blocks (diff) | |
download | linux-3d7e7e1d9db048bc6c1503bca9c82193450fc476.tar.xz linux-3d7e7e1d9db048bc6c1503bca9c82193450fc476.zip |
md/r5cache: do r5c_update_log_state after log recovery
We should update log state after we did a log recovery, current completion
may get wrong log state since log->log_start wasn't initalized until we
called r5l_recovery_log.
At log recovery stage, no lock needed as there is no race conditon.
next_checkpoint field will be initialized in r5l_recovery_log too.
Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions