From a7411e316a1ff73f9c67512211992378c62552e2 Mon Sep 17 00:00:00 2001 From: Vitaliy Mysak Date: Wed, 5 Jun 2019 21:38:01 +0000 Subject: [PATCH] test/ocf: enable serialize_overlap flag for FIO Set serialize_overlap=1 to prevent data races. This solves the issue of fio --verify fails in OCF tests when persistent metadata is enabled. Example: https://dqtibwqq6s6ux.cloudfront.net/public_build/autotest-per-patch_33325.html The serialize_overlap flag prevents from creating undefined regions by doing simultaneus writes (occurs on certain storages). More on that: https://fio.readthedocs.io/en/latest/fio_doc.html#cmdoption-arg-serialize-overlap We should probably use this flag for all FIO --verify tests. Signed-off-by: Vitaliy Mysak Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456991 (master) (cherry picked from commit 73224f880ef2240f4223fec3cc802a7c2c4e3cdb) Change-Id: Ia4f73f9900835faf4f94018f1d148fb64f06dc8a Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457583 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Ben Walker --- test/ocf/integrity/test.fio | 1 + 1 file changed, 1 insertion(+) diff --git a/test/ocf/integrity/test.fio b/test/ocf/integrity/test.fio index d2f84382c..8ea497cda 100644 --- a/test/ocf/integrity/test.fio +++ b/test/ocf/integrity/test.fio @@ -3,6 +3,7 @@ thread=1 group_reporting=1 direct=1 norandommap=1 +serialize_overlap=1 time_based=1 do_verify=1 verify=md5