The helper _have_scsi_debug_group_number_stats() loads and unloads scsi_debug to check parameters of scsi_debug. However, the unload is too soon after the load, then it often fails. To avoid such unload failures, use _patient_rmmod() to unload scsi_debug. Reported-by: Yi Zhang Closes: https://github.com/linux-blktests/blktests/issues/241 Signed-off-by: Shin'ichiro Kawasaki --- common/scsi_debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/scsi_debug b/common/scsi_debug index 6aa7420..86ea3f4 100644 --- a/common/scsi_debug +++ b/common/scsi_debug @@ -57,7 +57,7 @@ _have_scsi_debug_group_number_stats() { SKIP_REASONS+=("scsi_debug does not support group number statistics") ret=1 fi - modprobe -qr scsi_debug >&/dev/null + _patient_rmmod scsi_debug >&/dev/null return ${ret} } -- 2.49.0