]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc07abed2ecb30143a219e064f8e7b2572f007f49
tree45f5b97cc0b29f1fbc8c7930e34e4099454a98ee
parentaa60ee9bf684075e6a1815a1a66b4930be73172b
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