Song Liu b44886c54a 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>
2017-08-08 07:42:36 -07:00
..
2017-07-07 09:44:06 -07:00
2016-11-01 09:43:26 -06:00
2017-07-25 14:54:20 -04:00
2017-06-09 09:27:32 -06:00
2017-05-08 17:15:12 -07:00
2017-07-07 09:44:06 -07:00
2017-06-09 09:27:32 -06:00
2017-06-12 08:30:13 -06:00
2017-06-09 09:27:32 -06:00
2017-08-08 07:42:36 -07:00
2017-07-21 13:16:52 -07:00
2017-07-21 13:16:52 -07:00