]> www.infradead.org Git - users/hch/blktests.git/commit
nvme/039: avoid module loads for various transport types
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 10 Jun 2022 12:15:18 +0000 (21:15 +0900)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 14 Jun 2022 08:19:34 +0000 (17:19 +0900)
commitfc2b5d61519c80fb5abb24c2ff368e4cf4763269
tree02be1cbcc098e53f137a2205bf09a5725e73d588
parentc17a19d9d767f59b05cf8549ea1b11420c353b38
nvme/039: avoid module loads for various transport types

The test case nvme/039 does not depend on nvme transport type and does
not require modules for the transport types. The _nvme_requires call in
requires() loads the modules and those modules are left unloaded after
the test case run. This causes failures of following nvmeof-mp test runs
with message:

  modprobe: FATAL: Module nvmet is in use.

To avoid the unnecessary module loads, remove _nvme_requires call.
Instead, just check existence of nvme command.

Fixes: 9accb5f86670 ("tests/nvme: add tests for error logging")
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Alan Adamson <alan.adamson@oracle.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
tests/nvme/039