commit | a626662bf5abf198ef5c4dfe9c783416169242fd | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Aug 05 16:33:16 2019 -0700 |
committer | Rob Landley <rob@landley.net> | Fri Aug 09 20:33:14 2019 -0500 |
tree | ab47a7220279a62f95d75efbe0ef8eef89597969 | |
parent | 77df4f81bb44f4f92f0dd08d87186d35d10bfaee [diff] |
losetup: fix the race. There's a race between LOOP_CTL_GET_FREE and LOOP_SET_FD. Work around it by just retrying if we get EBUSY on the LOOP_SET_FD call. This is what similar code in ChromeOS already does. Bug: http://b/135716654