Commit bd34b7d9 authored by Pawel Kaminski's avatar Pawel Kaminski Committed by Daniel Verkamp
Browse files

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: default avatarPawel Kaminski <pawelx.kaminski@intel.com>
Reviewed-on: https://review.gerrithub.io/383436


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 11104c1c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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