Spdk/module/bdev/nvme
Shuhei Matsumoto 5feab0ddcf bdev/nvme: Remove spdk_bdev_first/next() calls from apply_firmware RPC
The NVMe bdev module has been refined since the bdev_nvme_apply_firmware
RPC was added. It is enough to open any one NVMe bdev even if one NVMe
controller has multiple namespaces. Hence, let's remove
spdk_bdev_first/next() calls from rpc_bdev_nvme_apply_firmware() rather
than replacing these by spdk_for_each_bdev(). Additionally, not only
spdk_bdev_close() but also spdk_put_io_channel() and
spdk_jsonrpc_send_*_response() should be done on the original thread.
Hence, redirect to the original thread always when a NVMe command is
returned, and rename firm_ctx->thread by firm_ctx->orig_thread for
clarification. orig_thread will be better than comment.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I90b1986584b3926980fd265e4fded194eb5a2d00
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16541
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2023-01-31 21:40:09 +00:00
..
bdev_mdns_client.c bdev_nvme: remove duplicated line from bdev_mdns_client.c 2023-01-30 16:30:01 +00:00
bdev_nvme_cuse_rpc.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
bdev_nvme_rpc.c bdev/nvme: Remove spdk_bdev_first/next() calls from apply_firmware RPC 2023-01-31 21:40:09 +00:00
bdev_nvme.c bdev_nvme: Support multipath across all discovery contexts. 2023-01-24 15:26:28 +00:00
bdev_nvme.h bdev_nvme: record io paths' stat before being destroyed 2023-01-19 01:57:11 +00:00
Makefile so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
nvme_rpc.c nvme: fix a possible NULL pointer deref 2022-12-06 09:26:57 +00:00
vbdev_opal_rpc.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_opal.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_opal.h update Intel copyright notices 2022-11-10 08:28:53 +00:00