numam-spdk/module
Shuhei Matsumoto 491e6c4309 bdev/crypto: Open base bdev first using spdk_bdev_open_ext()
vbdev_crypto_claim() 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: Ia0e1ce2ce696f431bb26af94729931c3ffb9a9d0
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4588
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-10-16 23:12:03 +00:00
..
accel log: remove internal log.h header 2020-10-15 08:23:39 +00:00
bdev bdev/crypto: Open base bdev first using spdk_bdev_open_ext() 2020-10-16 23:12:03 +00:00
blob lib/bdev: Add spdk_bdev_abort API 2020-06-08 09:28:27 +00:00
blobfs log: remove internal log.h header 2020-10-15 08:23:39 +00:00
env_dpdk log: remove internal log.h header 2020-10-15 08:23:39 +00:00
event log: remove internal log.h header 2020-10-15 08:23:39 +00:00
sock lib/sock: zero out sock_impl opts 2020-10-16 08:15:10 +00:00
Makefile global: rename copy to accel 2020-02-18 08:05:34 +00:00