Spdk/module/bdev
Krzysztof Karas e64728f092 bdev/crypto: make sure that vbdev_crypto_destruct() returns 1
Make vbdev_crypto_destruct() return 1 to signal that program
execution should wait for spdk_bdev_destruct_done() function,
which is added inside _device_unregister_cb().

This change is related to _vdev_dev_get() not being able
to find the devices, when called from _cryptodev_sym_session_free(),
as it uses device driver name, which might already be freed.
This occurs only during bdev module finish, when crypto bdevs
are being unregistered and vbdev_crypto_finish() proceeds to
call bdev name deletion without waiting for the unregister
callbacks to complete, which ultimately results in reading
freed pointers.

This only happens when code execution takes path for DPDK 22.11+.

Change-Id: Id9a43d07c90aef7a82867383fd77354ac521a3e7
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16290
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2023-01-19 10:28:52 +00:00
..
aio update Intel copyright notices 2022-11-10 08:28:53 +00:00
compress bdev/compress: limit operations performed on reduce_thread 2022-12-05 09:51:26 +00:00
crypto bdev/crypto: make sure that vbdev_crypto_destruct() returns 1 2023-01-19 10:28:52 +00:00
daos bdev/daos: fix write of multiple iovs 2022-11-28 20:09:48 +00:00
delay update Intel copyright notices 2022-11-10 08:28:53 +00:00
error update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl misc: Fix spelling mistakes 2022-12-09 08:16:18 +00:00
gpt update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi misc: Fix spelling mistakes 2022-12-09 08:16:18 +00:00
lvol lvol: log when an lvstore is unloaded due to hotplug 2023-01-10 13:12:41 +00:00
malloc update Intel copyright notices 2022-11-10 08:28:53 +00:00
null update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme bdev_nvme: record io paths' stat before being destroyed 2023-01-19 01:57:11 +00:00
ocf bdev/ocf: Add runtime cache bdev flush support 2022-11-18 08:38:03 +00:00
passthru update Intel copyright notices 2022-11-10 08:28:53 +00:00
pmem update Intel copyright notices 2022-11-10 08:28:53 +00:00
raid bdev/raid0: Support resize when increasing the size of base bdevs 2023-01-17 19:45:34 +00:00
rbd bdev/rbd: limit operations performed on main thread 2022-12-05 09:51:26 +00:00
split update Intel copyright notices 2022-11-10 08:28:53 +00:00
uring bdev/uring: handle the out of resoruce from uring 2022-11-15 08:31:45 +00:00
virtio update Intel copyright notices 2022-11-10 08:28:53 +00:00
xnvme bdev_xnvme: Remove duplicate invocation of bdev_xnvme_destruct 2023-01-09 12:43:49 +00:00
zone_block update Intel copyright notices 2022-11-10 08:28:53 +00:00
Makefile configure: rename --with-reduce --with-vbdev-compress 2022-12-08 12:55:27 +00:00