Spdk/module
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
..
accel so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
bdev bdev/nvme: Remove spdk_bdev_first/next() calls from apply_firmware RPC 2023-01-31 21:40:09 +00:00
blob so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
blobfs so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
env_dpdk so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
event so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
scheduler so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
sock so_ver: increase all major versions 2023-01-24 08:37:21 +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