This patch set provides 2 semaphore fixes for t_ofd_locks. First patch fixes the handling of stalled semaphore. Second patch fixes the init sequence, making sure the lock-setter process actually waits for the lock-getter to initialize. Changes in v3: sem is now created by the wrapper script, rather than by the lock-setter process. This allowed to remove the sem-await loop from the lock-getter, speeding up the test ~5 times. CC: fstests@xxxxxxxxxxxxxxx CC: Murphy Zhou <xzhou@xxxxxxxxxx> CC: Jeff Layton <jlayton@xxxxxxxxxx> CC: Zorro Lang <zlang@xxxxxxxxxx> Signed-off-by: Stas Sergeev <stsp2@xxxxxxxxx> Stas Sergeev (2): t_ofd_locks: fix stalled semaphore handling t_ofd_locks: fix sem initialization sequence src/t_ofd_locks.c | 92 +++++++++++++++++++---------------------------- tests/generic/478 | 14 +++++--- 2 files changed, 47 insertions(+), 59 deletions(-) -- 2.39.2