Whamcloud - gitweb
LU-168 Fix schedule race in sanityn PDO lock tests
authornasf <yong.fan@whamcloud.com>
Fri, 8 Jul 2011 16:20:56 +0000 (00:20 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 8 Jul 2011 17:47:17 +0000 (10:47 -0700)
commit5c1e9f9dada5f2f44a4fc9f46c4bb0789b747df6
tree575f147b65f7a2d2da1a9b8474af3b93cb6733a2
parentef803602bf2ee9ed6aabb09aafe23fe036e7b8b2
LU-168 Fix schedule race in sanityn PDO lock tests

In sanityn PDO lock tests, even if the second operation is blocked by
the first one on server-side, after the blocking, the second one may
be finished earlier than the first one because of client-side schedule
order. So sleep a sec before check_pdo_conflict() to ensure the first
operation is finished after OBD_FAIL_MDS_PDO_LOCK barriers.

Change-Id: I62412d74e17be012ee6660179ad77375c196671d
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1030
Tested-by: Hudson
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanityn.sh