]> www.infradead.org Git - users/hch/blktests.git/commit
block/001: wait until device is added
authorMing Lei <ming.lei@redhat.com>
Tue, 24 Aug 2021 03:17:53 +0000 (11:17 +0800)
committerOmar Sandoval <osandov@fb.com>
Wed, 25 Aug 2021 00:56:05 +0000 (17:56 -0700)
commitf3bcd8c4799375937e394416c36a806becccbadb
treea95fd7042eedf63199c3b6e196f663f0b0f67302
parentead3f78a94cc02d5f2266fa6e28b0180bcd6f5af
block/001: wait until device is added

Writing to the scan attribute of scsi host is usually one sync scan, but
devices in this sync scan may be delay added if there is concurrent
asnyc scan.

So wait until the device is added in block/001 for avoiding to fail
the test.

Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Ming Lei <ming.lei@redhat.com>
[Omar: fix quoting and simplify logic]
Signed-off-by: Omar Sandoval <osandov@fb.com>
tests/block/001