Commit 7d959f6e authored by Eric Dumazet's avatar Eric Dumazet Committed by Song Liu
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Cc: linux-raid@vger.kernel.org
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent 5b401e4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9582,7 +9582,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;
}