Whamcloud - gitweb
LU-8295 tests: comply with OBD_RACE() behavior 17/21117/12
authorBruno Faccini <bruno.faccini@intel.com>
Thu, 30 Jun 2016 23:11:14 +0000 (01:11 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:40:47 +0000 (05:40 +0000)
commita3becc1092524366e13b3c72d61c6b0ea82709f7
tree88c5504ade9f753ce5b906c7d2fb183ba828c5aa
parent3ed1444d3fa4e31fbb99c82a478802c0dbcb168e
LU-8295 tests: comply with OBD_RACE() behavior

Have conf-sanity/test_41c better comply with OBD_RACE() internal
behavior when creating a racy situation with 2 similar mount
cmds being run in parallel.

CFS_FAIL_ONCE must be set, and fail_loc must only be reset when
it is sure that both mount commands have reached the race
rendez-vous, in order to have OBD_RACE() behave as expected.

start() function is no longer used to avoid extra tools which
surround mount command to interfer due to concurrency.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: Ic513c82c4fd1395d88144cf1c590a08dfd3c11e5
Reviewed-on: https://review.whamcloud.com/21117
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/conf-sanity.sh