diff options
| author | Yu Kuai <[email protected]> | 2023-05-23 02:10:14 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2023-06-13 22:25:13 +0000 |
| commit | 955a257d69e44cea09b0375b8f2f3d4d9fcf7b4e (patch) | |
| tree | 927278c5d5ac9dc1b298028192ab227a61fc335e /drivers/md | |
| parent | md: factor out a helper to wake up md_thread directly (diff) | |
| download | kernel-955a257d69e44cea09b0375b8f2f3d4d9fcf7b4e.tar.gz kernel-955a257d69e44cea09b0375b8f2f3d4d9fcf7b4e.zip | |
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 <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/md')
| -rw-r--r-- | drivers/md/dm-raid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index c8821fcb8299..8846bf510a35 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -3750,11 +3750,11 @@ static int raid_message(struct dm_target *ti, unsigned int argc, char **argv, * canceling read-auto mode */ mddev->ro = 0; - if (!mddev->suspended && mddev->sync_thread) + if (!mddev->suspended) md_wakeup_thread(mddev->sync_thread); } set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); - if (!mddev->suspended && mddev->thread) + if (!mddev->suspended) md_wakeup_thread(mddev->thread); return 0; |
