Commit 7d5fff8
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: 9d09e66 ("dm: raid456 basic support")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>1 parent e74c874 commit 7d5fff8
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
3301 | | - | |
3302 | 3301 | | |
| 3302 | + | |
3303 | 3303 | | |
3304 | 3304 | | |
3305 | 3305 | | |
| |||
3310 | 3310 | | |
3311 | 3311 | | |
3312 | 3312 | | |
| 3313 | + | |
3313 | 3314 | | |
| 3315 | + | |
3314 | 3316 | | |
3315 | 3317 | | |
3316 | 3318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6247 | 6247 | | |
6248 | 6248 | | |
6249 | 6249 | | |
| 6250 | + | |
| 6251 | + | |
6250 | 6252 | | |
6251 | 6253 | | |
6252 | 6254 | | |
| |||
0 commit comments