On Wed, Nov 22, 2023 at 03:07:54PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > Coverity reminded me that the pthread_cond_wait can wake up and return > without the predicate variable (sft.nr_dirs > 0) actually changing. > Therefore, one has to retest the condition after each wakeup. Looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>