]> 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>
Wed, 1 Jun 2022 08:29:42 +0000 (10:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 7 Jun 2022 10:24:47 +0000 (12:24 +0200)
commitc9e6ccd79e0a23e9a78343f54a0dcae2c86d0e5e
tree1ad3ae1a8b4262ea8463670d1a99b78335499e71
parentb73314e91a2572acc85d344a519cd32058101d40
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>
common/null_blk