aboutsummaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorEric Dumazet2022-03-03 15:19:33 -0800
committerSong Liu2022-03-08 15:20:21 -0800
commit7d959f6e978cbbca90e26a192cc39480e977182f (patch)
tree45f5b97cc0b29f1fbc8c7930e34e4099454a98ee /drivers/md
parent5b401e4e9ac4c6a62b9f6562d0250c1a56477ff2 (diff)
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')
-rw-r--r--drivers/md/md.c2
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;
}