]> www.infradead.org Git - users/hch/blktests.git/commit
block/001: don't exit test with pending async scan
authorMing Lei <ming.lei@redhat.com>
Mon, 30 Aug 2021 02:38:44 +0000 (10:38 +0800)
committerOmar Sandoval <osandov@fb.com>
Tue, 31 Aug 2021 23:42:37 +0000 (16:42 -0700)
commit20c53b2189d6c47173fca4932d2432554b302f6d
tree85b4c33269212a3bb3ab37da35fbc9c3bc4c0469
parentb1e29e775872c30282331d02ca53ec6529ad79d2
block/001: don't exit test with pending async scan

We have to run scan and delete together, otherwise pending async
may prevent scsi_debug from being unloaded, and cause failure of
'modprobe: FATAL: Module scsi_debug is in use.'

Fix the issue by always running both scan and delete together.

Fixes: f3bcd8c ("block/001: wait until device is added")
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
tests/block/001