On 9/14/21, 9:18 AM, "Bossart, Nathan" <bossa...@amazon.com> wrote: > This is an interesting idea, but the "else" block here seems prone to > race conditions. I think we'd have to hold arch_lck to prevent that. > But as I mentioned above, if we are okay with depending on the > fallback directory scans, I think we can remove the "else" block > completely.
Thinking further, we probably need to hold a lock even when we are creating the .ready file to avoid race conditions. Nathan