Searched hist:a72cbf83b0cb2368568d4e78cf1687079aad4d25 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/md/ |
H A D | raid5-cache.c | diff a72cbf83b0cb2368568d4e78cf1687079aad4d25 Wed Aug 09 07:56:52 CEST 2017 Song Liu <songliubraving@fb.com> md/r5cache: call mddev_lock/unlock() in r5c_journal_mode_show
In r5c_journal_mode_show(), it is necessary to call mddev_lock() before accessing conf and conf->log. Otherwise, the conf->log may change (and become NULL).
Signed-off-by: Song Liu <songliubraving@fb.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Shaohua Li <shli@fb.com>
|