Skip to content

Commit 7d959f6

Browse files
edumazetliu-song-6
authored andcommitted
md: use msleep() in md_notify_reboot()
Calling mdelay(1000) from process context, even while a reboot is in progress, does not make sense. Using msleep() allows other threads to make progress. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: linux-raid@vger.kernel.org Signed-off-by: Song Liu <song@kernel.org>
1 parent 5b401e4 commit 7d959f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/md/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9582,7 +9582,7 @@ static int md_notify_reboot(struct notifier_block *this,
95829582
* driver, we do want to have a safe RAID driver ...
95839583
*/
95849584
if (need_delay)
9585-
mdelay(1000*1);
9585+
msleep(1000);
95869586

95879587
return NOTIFY_DONE;
95889588
}

0 commit comments

Comments
 (0)