]> www.infradead.org Git - users/hch/blktests.git/commit
common/null_blk: allow _configure_null_blk with built-in null_blk
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Jun 2022 12:47:28 +0000 (14:47 +0200)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Wed, 8 Jun 2022 04:31:31 +0000 (13:31 +0900)
commit943f4ec53a75e8e71bba8917be1d691c4dfb0e1a
tree241cef2d90e6236dfaf0d78cbac419acab248790
parentc05da1c9eec4bc26b643c96dd61659963632716a
common/null_blk: allow _configure_null_blk with built-in null_blk

Test that do use _configure_null_blk already configure do not actually
require a built-in null_blk driver.  Relax the check in _have_null_blk
to just require a driver instead of a module, and instead set a skip
reason instead of failing in _init_null_blk when null_blk is built-in
or otherwise not available.

Also try to load the null_blk module in _configure_null_blk as
_init_null_blk is optional now and we thus can't rely on the module
to be loaded.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
common/null_blk