10.07.2023 09:27, Murphy Zhou пишет:
What while loop do you mean and what doesn't hurt? Does the rest of the patch look ok?I mean the do-while loop ensures a new semaphore is created.
OK, given that the initial patch was problematic for review, I posted the v2, which introduces the simpler scheme, and is better structured: https://lore.kernel.org/fstests/20230731112807.1463846-1-stsp2@xxxxxxxxx/T/#t Does this help?