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 <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/383436 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
11104c1c85
commit
bd34b7d9bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user