md: use msleep() in md_notify_reboot()
PATCH 1/1 md: use msleep() in md_notify_reboot()
From: Eric Dumazet <[email protected]>
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 <[email protected]>
--- drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -1
@@ -9583,7 +9583,7 @@ static int md_notify_reboot(struct notifier_block *this,* driver, we do want to have a safe RAID driver ... */ if (need_delay) -mdelay (1000 *1 ); +msleep (1000 );return NOTIFY_DONE ; }
Signature · 1 line
2.35.1.616.g0bdcbb4464-goog
Quoted 10 lines · Eric Dumazet
From: Eric Dumazet <[email protected]>
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 <[email protected]>
Applied to md-next. Thanks!
Song