diff options
author | Eric Dumazet <edumazet@google.com> | 2022-03-04 00:19:33 +0100 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2022-03-09 00:20:21 +0100 |
commit | 7d959f6e978cbbca90e26a192cc39480e977182f (patch) | |
tree | 45f5b97cc0b29f1fbc8c7930e34e4099454a98ee /drivers/md/md.c | |
parent | lib/raid6: Include <asm/ppc-opcode.h> for VPERMXOR (diff) | |
download | linux-7d959f6e978cbbca90e26a192cc39480e977182f.tar.xz linux-7d959f6e978cbbca90e26a192cc39480e977182f.zip |
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>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index f88a9e948f3e..d059e21f3c35 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -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; } |