commit | 7d5fff8982a2199d49ec067818af7d84d4f95ca0 | [log] [tgz] |
---|---|---|
author | Yu Kuai <yukuai3@huawei.com> | Sat Jul 08 17:21:53 2023 +0800 |
committer | Mike Snitzer <snitzer@kernel.org> | Tue Jul 25 11:55:50 2023 -0400 |
tree | 56a7b3a6737322298ffb27f415901d17133c686f | |
parent | e74c874eabe2e9173a8fbdad616cd89c70eb8ffd [diff] |
dm raid: protect md_stop() with 'reconfig_mutex' __md_stop_writes() and __md_stop() will modify many fields that are protected by 'reconfig_mutex', and all the callers will grab 'reconfig_mutex' except for md_stop(). Also, update md_stop() to make certain 'reconfig_mutex' is held using lockdep_assert_held(). Fixes: 9d09e663d550 ("dm: raid456 basic support") Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>