Commit 138203d
committed
md/raid5: merge reshape_progress checking inside get_reshape_loc()
JIRA: https://issues.redhat.com/browse/RHEL-83988
commit 1320fe8
Author: Yu Kuai <yukuai3@huawei.com>
Date: Thu Feb 27 20:04:52 2025 +0800
md/raid5: merge reshape_progress checking inside get_reshape_loc()
During code review, it's found that other than raid5_bitmap_sector(),
reshape_progress is always checked before get_reshape_loc(), while
raid5_bitmap_sector() should check as well to prevent holding the
lock 'conf->device_lock'. Hence merge that checking inside
get_reshape_loc().
Link: https://lore.kernel.org/linux-raid/20250227120452.808503-1-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>1 parent bf2723f commit 138203d
1 file changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5858 | 5858 | | |
5859 | 5859 | | |
5860 | 5860 | | |
| 5861 | + | |
| 5862 | + | |
| 5863 | + | |
5861 | 5864 | | |
5862 | 5865 | | |
5863 | 5866 | | |
| |||
5935 | 5938 | | |
5936 | 5939 | | |
5937 | 5940 | | |
| 5941 | + | |
5938 | 5942 | | |
5939 | 5943 | | |
5940 | 5944 | | |
5941 | 5945 | | |
5942 | 5946 | | |
5943 | | - | |
5944 | | - | |
5945 | | - | |
5946 | | - | |
5947 | | - | |
5948 | | - | |
5949 | | - | |
5950 | | - | |
5951 | | - | |
5952 | | - | |
| 5947 | + | |
| 5948 | + | |
| 5949 | + | |
| 5950 | + | |
5953 | 5951 | | |
| 5952 | + | |
| 5953 | + | |
5954 | 5954 | | |
5955 | 5955 | | |
5956 | 5956 | | |
| |||
6127 | 6127 | | |
6128 | 6128 | | |
6129 | 6129 | | |
6130 | | - | |
6131 | 6130 | | |
6132 | 6131 | | |
6133 | 6132 | | |
| |||
0 commit comments