Spdk/test/unit/lib/bdev
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
..
bdev_ocssd.c bdev/nvme: add a function for specifying a multipath trid. 2020-08-07 15:06:01 +00:00
bdev_zone.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
bdev.c test/bdev_ut: fix warning about unitialize value. 2020-10-16 08:15:57 +00:00
compress.c bdev/compress: Pass bdev name instead of bdev pointer to _prepare_for_load_init() 2020-10-16 08:14:34 +00:00
crypto.c bdev/crypto: Open base bdev first using spdk_bdev_open_ext() 2020-10-16 23:12:03 +00:00
gpt module/bdev_gpt: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00
mt lib/bdev: Use not SPDK thread count but core count for mempool cache size 2020-06-08 09:33:50 +00:00
part.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
pmem module/bdev_pmem: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00
raid module/raid_bdev: remove spdk prefix from static functions. 2020-05-15 07:58:03 +00:00
scsi_nvme.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
vbdev_lvol.c lvol: remove lvol_task structure 2020-04-24 15:45:21 +00:00
vbdev_zone_block.c lib/thread: Wait until thread_is_exited() is true by thread_poll() after thread_exit() 2020-04-08 06:43:05 +00:00
Makefile ut/raid: put bdev_raid.c into 'raid' subdirectory 2020-02-20 14:40:19 +00:00