Spdk/module
Shuhei Matsumoto b05ec00f1a bdev/nvme: bdev_nvme_delete() uses mutexes for race conditions
Inline the internal of bdev_nvme_delete_ctrlr() and bdev_nvme_failover()
into _bdev_nvme_delete().

Change the _nvme_ctrlr_destruct() call from direct to message passing
to reduce lock hold time and avoid potential deadlock.

Then, protect nbdev_ctrlr via g_bdev_mutex_unlock and each nvme_ctrlr
via nvme_ctrlr->mutex.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I5cc2cf781d2846c51bce631c12fceaeade860a0b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16822
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Michael Haeuptle <michaelhaeuptle@gmail.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2023-03-16 08:42:03 +00:00
..
accel lib/accel: removed references to ACCEL_FLAG_PERSISTENT 2023-03-03 11:20:03 +00:00
bdev bdev/nvme: bdev_nvme_delete() uses mutexes for race conditions 2023-03-16 08:42:03 +00:00
blob blob_bdev: take read-only-many claims on ro devs 2023-03-03 11:25:35 +00:00
blobfs module/blobfs: Use error_response() rather than bool_response(false) for JSON RPCs 2023-01-31 21:40:09 +00:00
env_dpdk so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
event nvmf: add spdk_nvmf_request_copy_*_buf() 2023-02-13 13:50:51 +00:00
scheduler so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
sock module/uring: report actual error code from getaddrinfo() 2023-03-10 16:44:37 +00:00
vfu_device so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00