mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
dm-raid: remove useless checking in raid_message()
md_wakeup_thread() handle the case that pass in md_thread is NULL, there is no need to check this. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20230523021017.3048783-3-yukuai1@huaweicloud.com
This commit is contained in:
@@ -3750,11 +3750,11 @@ static int raid_message(struct dm_target *ti, unsigned int argc, char **argv,
|
|||||||
* canceling read-auto mode
|
* canceling read-auto mode
|
||||||
*/
|
*/
|
||||||
mddev->ro = 0;
|
mddev->ro = 0;
|
||||||
if (!mddev->suspended && mddev->sync_thread)
|
if (!mddev->suspended)
|
||||||
md_wakeup_thread(mddev->sync_thread);
|
md_wakeup_thread(mddev->sync_thread);
|
||||||
}
|
}
|
||||||
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
|
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
|
||||||
if (!mddev->suspended && mddev->thread)
|
if (!mddev->suspended)
|
||||||
md_wakeup_thread(mddev->thread);
|
md_wakeup_thread(mddev->thread);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user