commit | b44886c54a999771060371c3a05d5fedfc7e2102 | [log] [tgz] |
---|---|---|
author | Song Liu <songliubraving@fb.com> | Mon Jul 31 14:52:26 2017 -0700 |
committer | Shaohua Li <shli@fb.com> | Tue Aug 08 07:42:36 2017 -0700 |
tree | 6803f9f24871193e61cecde1e21132006eac6d27 | |
parent | 81fe48e9aa00bdd509bd3c37a76d1132da6b9f09 [diff] |
md/r5cache: call mddev_lock/unlock() in r5c_journal_mode_set In r5c_journal_mode_set(), it is necessary to call mddev_lock() before accessing conf and conf->log. Otherwise, the conf->log may change (and become NULL). Shaohua: fix unlock in failure cases Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com>