diff options
author | NeilBrown <neilb@suse.de> | 2013-06-25 15:56:22 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-06-25 15:56:22 +1000 |
commit | 399e0b9709311bebde461c57f5622be68e15c6a0 (patch) | |
tree | e00b0f607125cb1b21869aa16fc1baf23fefec7b /makedist | |
parent | 8010806baba901e6e903ba4167c0ed88bf6e1294 (diff) |
Subject: Make wait_for and open_dev_excl faster
When we crete or assemble an array, we wait for udev to create the
device file in /dev so that as soon as mdadm complete, the device can
be used.
This waiting is performed in multiples of 200ms, which can sometimes
be too long to wait.
So change to an exponential backoff. Wait 1, then 2, then 4 msec etc.
Once we get to 256msec, stop backing off and continue waiting 256ms at
a time until we reach the limit which is now 4.608sec rather than 5sec
which it was before.
Ditto for open_dev_excl.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'makedist')
0 files changed, 0 insertions, 0 deletions