From bd34b7d9bbf6b57b6efdcfc4fb850f14234ad272 Mon Sep 17 00:00:00 2001 From: Pawel Kaminski Date: Mon, 23 Oct 2017 18:33:54 +0200 Subject: [PATCH] test/vhost: Fix write with verification. Change is needed because fio job (trim_write_read) submits unmap first and then write, but sometimes write finishes before unmap. It casues that write fails with verification. Nvm Express 1.3: "The controller fetches SQ entries in order from the Submission Queue, however, it may then execute those commands in any order. " Change-Id: Ia399e5677051c2e2077fe3082ede846a8ac9dd49 Signed-off-by: Pawel Kaminski Reviewed-on: https://review.gerrithub.io/383436 Tested-by: SPDK Automated Test System Reviewed-by: Tomasz Zawadzki Reviewed-by: Daniel Verkamp --- test/vhost/initiator/blockdev.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/vhost/initiator/blockdev.sh b/test/vhost/initiator/blockdev.sh index 5df347be37..eace20e894 100755 --- a/test/vhost/initiator/blockdev.sh +++ b/test/vhost/initiator/blockdev.sh @@ -63,10 +63,9 @@ function prepare_fio_job_for_unmap() { # Check that after TRIM/UNMAP operation disk space can be used for read # by using write with verify (which implies reads) - echo "[trim_write_read]" >> $testdir/bdev.fio + echo "[write]" >> $testdir/bdev.fio echo "stonewall" >> $testdir/bdev.fio - echo "rw=trimwrite" >> $testdir/bdev.fio - echo "trim_verify_zero=1" >> $testdir/bdev.fio + echo "rw=write" >> $testdir/bdev.fio } source $rootdir/test/vhost/common/common.sh