]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
scsi/004: set a shorter device timeout
authorOmar Sandoval <osandov@fb.com>
Thu, 19 Apr 2018 20:16:30 +0000 (13:16 -0700)
committerOmar Sandoval <osandov@fb.com>
Thu, 19 Apr 2018 20:16:30 +0000 (13:16 -0700)
With the default timeout, the test takes a long time to run for no good
reason.

Signed-off-by: Omar Sandoval <osandov@fb.com>
tests/scsi/004

index 4852efc321c8122101fb6b683bc19805782ec0c5..76230cd4c616ea505d96f8a7c9b1f27a243d66f5 100755 (executable)
@@ -39,6 +39,7 @@ test() {
        if ! _init_scsi_debug add_host=1 max_luns=1 statistics=1 every_nth=1; then
            return 1
        fi
+       echo 5 > "/sys/block/${SCSI_DEBUG_DEVICES[0]}/device/timeout"
        # every_nth RW with full queue gets SAM_STAT_TASK_SET_FULL
        echo 0x800 > /sys/bus/pseudo/drivers/scsi_debug/opts
        # delay to reduce response repetition: around 1..10sec depending on HZ