From 6483bcef54d36916b14c07f2b164c6faa8433fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 30 May 2023 15:56:45 +0200 Subject: [PATCH] shared/loop-util: add comment Requested in https://github.com/systemd/systemd/commit/afbe20b7d4ed4c3aebbd1b3de00b9b7385dd0ae8#r115653459. --- src/shared/loop-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index 5418871093..a70c5509d5 100644 --- a/src/shared/loop-util.c +++ b/src/shared/loop-util.c @@ -818,7 +818,8 @@ static LoopDevice* loop_device_free(LoopDevice *d) { /* Now that the block device is released, let's also try to remove it */ if (control >= 0) { - useconds_t delay = 5 * USEC_PER_MSEC; + useconds_t delay = 5 * USEC_PER_MSEC; /* A total delay of 5090 ms between 39 attempts, + * (4*5 + 5*10 + 5*20 + … + 3*640) = 5090. */ for (unsigned attempt = 1;; attempt++) { if (ioctl(control, LOOP_CTL_REMOVE, d->nr) >= 0)