generic/478: fix potential test blocking
authorXiong Zhou <xzhou@redhat.com>
Fri, 23 Mar 2018 02:49:37 +0000 (10:49 +0800)
committerEryu Guan <guaneryu@gmail.com>
Fri, 23 Mar 2018 06:06:33 +0000 (14:06 +0800)
commit545e7ca67bea43fc206b135cbc60637c52a2e3f3
treeb7bb456a26dd2f0b5016a8d80ed22f09563dbfea
parent8aa212310d62295488d23bf7958d2329c287a8c9
generic/478: fix potential test blocking

Reduce semtimedop timeout to 5s, 15s is too long if something get
tangled up. Add retry counting to getlk routine, infinite loop is
dangerous. If something goes wrong unexpextedly, test is blocked and
wasting time.

Signed-off-by: Xiong Zhou <xzhou@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/t_ofd_locks.c