Loading
bdev/compress: Pass bdev name instead of bdev pointer to _prepare_for_load_init()
This patch removes the call of spdk_bdev_get_by_name() from create_compress_bdev() by calling spdk_bdev_open_ext() and then passing bdev descriptor to _prepare_for_load_init(). vbdev_init_reduce() returns the return code of spdk_bdev_open_ext() directly if it is error to process the ENODEV case correctly. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ie80ce4104ceaa5726db976e33cd35352d5c91703 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4571 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Paul Luse <paul.e.luse@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>