]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: yield for 2ms when a verity device cannot be opened before retrying
authorLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 10 Aug 2020 10:22:30 +0000 (11:22 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 14 Aug 2020 14:26:04 +0000 (15:26 +0100)
commitecab4c470cae07a65a10e9aa2aec3878a06f2904
tree17402bef15eb8f8ee038419efaa35d0f5d0cc30d
parent9ecb5c10fdfadc945fda93b0b28fb88d1102d399
dissect: yield for 2ms when a verity device cannot be opened before retrying

If we don't succeed on the first try it's because another process is
opening the same device. Do a microsleep for 2ms to increase the
chances it has completed the next time around the loop.
src/shared/dissect-image.c