mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
ZTS: retry the zvol_misc_fua exports while the volume is busy
zvol_misc_fua exports and re-imports the pool for each of its two blk-mq cases while the volume device exists, so an export can race with the udev rule which opens it and fail with "pool is busy". zvol_misc_trim has the same structure and already uses log_must_busy for its exports. Do the same here, so a transiently open device does not fail the test. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Michael Heller <[email protected]> Closes #18970
This commit is contained in:
1 parent
5bd7d44667
commit
330e6fb761
1 file changed
+2
-2
@@ -105,12 +105,12 @@ log_must zpool add $TESTPOOL log $datafile3
|
||||
log_note "Testing without blk-mq"
|
||||
|
||||
set_blk_mq 0
|
||||
log_must zpool export $TESTPOOL
|
||||
log_must_busy zpool export $TESTPOOL
|
||||
log_must zpool import $TESTPOOL
|
||||
do_test
|
||||
|
||||
set_blk_mq 1
|
||||
log_must zpool export $TESTPOOL
|
||||
log_must_busy zpool export $TESTPOOL
|
||||
log_must zpool import $TESTPOOL
|
||||
do_test
|
||||
|
||||
|
||||
Reference in new issue
Block a user