md: use msleep() in md_notify_reboot()
authorEric Dumazet <edumazet@google.com>
Thu, 3 Mar 2022 23:19:33 +0000 (15:19 -0800)
committerSong Liu <song@kernel.org>
Tue, 8 Mar 2022 23:20:21 +0000 (15:20 -0800)
commit7d959f6e978cbbca90e26a192cc39480e977182f
tree45f5b97cc0b29f1fbc8c7930e34e4099454a98ee
parent5b401e4e9ac4c6a62b9f6562d0250c1a56477ff2
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>
drivers/md/md.c