commit | ff35f58e8f8eb520367879a0ccc6f2ec4b62b17b | [log] [tgz] |
---|---|---|
author | Song Liu <songliubraving@fb.com> | Sun Nov 19 22:17:00 2017 -0800 |
committer | Shaohua Li <shli@fb.com> | Fri Dec 01 11:27:32 2017 -0800 |
tree | 9a77e1a2d8777399694a84896695057f8f97267a | |
parent | aff69d89bdebc39235cddb4445371eb979b49685 [diff] |
md/r5cache: move mddev_lock() out of r5c_journal_mode_set() r5c_journal_mode_set() is called by r5c_journal_mode_store() and raid_ctr() in dm-raid. We don't need mddev_lock() when calling from raid_ctr(). This patch fixes this by moves the mddev_lock() to r5c_journal_mode_store(). Cc: stable@vger.kernel.org (v4.13+) Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com>