]> www.infradead.org Git - users/hch/blktests.git/commit
srp/011: Avoid $dev becoming invalid during test
authorXiao Yang <yangx.jy@fujitsu.com>
Wed, 18 May 2022 06:44:17 +0000 (14:44 +0800)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 26 May 2022 04:21:08 +0000 (13:21 +0900)
commit7de67168684f605129367775a52f6a0d3e59f8f4
tree33cc23cad7af76e9b23a18ee8a33c4793191cb76
parent3ab437e8834208400b18b13d801bfb2e2752c0d1
srp/011: Avoid $dev becoming invalid during test

$dev will become invalid when log_out has been done
and fio doesn't run yet. In this case subsequent fio
throws the following error:
-------------------------------------
    From diff -u 011.out 011.out.bad
    Configured SRP target driver
    -Passed

    From 011.full:
    fio: looks like your file system does not support direct=1/buffered=0
    fio: destination does not support O_DIRECT
    run_fio exit code: 1
-------------------------------------
This issue happens randomly.

Try to fix the issue by holding $dev before test.

Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
tests/srp/011