diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2023-01-26 00:44:39 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-14 22:23:06 +0300 |
commit | 238d991f054a553e823d12b0ffd52aaeedd65f70 (patch) | |
tree | 138cfd9507e66902527d44521287ac83911a9999 /drivers/md/dm-init.c | |
parent | 0d78954a2d80e648cfed1d306fffe52c6211c432 (diff) | |
download | linux-238d991f054a553e823d12b0ffd52aaeedd65f70.tar.xz |
dm: use fsleep() instead of msleep() for deterministic sleep duration
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-init.c')
-rw-r--r-- | drivers/md/dm-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-init.c b/drivers/md/dm-init.c index 5ca15528e5be..5eb215f3d248 100644 --- a/drivers/md/dm-init.c +++ b/drivers/md/dm-init.c @@ -296,7 +296,7 @@ static int __init dm_init_init(void) if (waitfor[i]) { DMINFO("waiting for device %s ...", waitfor[i]); while (!dm_get_dev_t(waitfor[i])) - msleep(5); + fsleep(5000); } } |