aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2025-02-27 12:04:52 +0000
committerYu Kuai <[email protected]>2025-03-04 16:31:27 +0000
commit1320fe874175fac395fa693195db68b2001c4d8f (patch)
treea61d8749aadcf5f8cb0d715a408c9cc8bb5c2de5 /drivers/md/raid1.c
parentmd: fix mddev uaf while iterating all_mddevs list (diff)
downloadkernel-1320fe874175fac395fa693195db68b2001c4d8f.tar.gz
kernel-1320fe874175fac395fa693195db68b2001c4d8f.zip
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/[email protected] Signed-off-by: Yu Kuai <[email protected]>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions