]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
scsi_debug: settle udev before removing scsi_debug
authorOmar Sandoval <osandov@fb.com>
Thu, 24 May 2018 00:18:57 +0000 (17:18 -0700)
committerOmar Sandoval <osandov@fb.com>
Thu, 24 May 2018 00:19:58 +0000 (17:19 -0700)
I'm still seeing "modprobe: FATAL: Module scsi_debug is in use." errors.
At least on v4.17-rc6, this gets rid of them. Fixes GitHub issue #17.

Signed-off-by: Omar Sandoval <osandov@fb.com>
common/scsi_debug

index 345d16d7587d8f5f90ee9327759f634287ec2b99..e26e85637369dace0755606662bde88a5de7f4b3 100644 (file)
@@ -63,5 +63,6 @@ _exit_scsi_debug() {
        unset SCSI_DEBUG_HOSTS
        unset SCSI_DEBUG_TARGETS
        unset SCSI_DEBUG_DEVICES
+       udevadm settle
        modprobe -r scsi_debug
 }