f057ffbaff
vbdev_passthru_register() gets bdev name instead of bdev pointer as a parameter, and open the corresponding base bdev first using spdk_bdev_open_ext(). The purpose is to fix the race condition due to the time gap between spdk_bdev_get_by_name() and spdk_bdev_open(). A bdev pointer is valid only while the bdev is opened. Resize event is not supported for now. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ib8894cf857ef814f6721e4244237c8156f147426 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4564 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Community-CI: Mellanox Build Bot |
||
---|---|---|
.. | ||
Makefile | ||
vbdev_passthru_rpc.c | ||
vbdev_passthru.c | ||
vbdev_passthru.h |