]> 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)
commitb7772e2502349b6c6e8626d0237088777eab5f16
tree45f5b97cc0b29f1fbc8c7930e34e4099454a98ee
parentdfc0f81b6388c41cbd4dd2f451cd8b7a3e5ce804
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