Spdk/module/bdev/nvme
Jim Harris 17afd268df nvme: call correct remove_cb when device is removed
When a device is removed, we should use the remove_cb
that was specified when the device was originally probed
and attached, if one was set.

Also add a new spdk_nvme_ctrlr_set_remove_cb API.  This
can be used for cases where a different remove_ctx is
desired than was specified for the probe call.  This
also enables setting a remove_cb when using connect APIs
which do not have a way currently to provide a remove_cb.

This also requires fixing the bdev nvme module, which
was depending on the previously errant behavior.

Fixes issue #1715.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Id848b39040099ff7a21fe57ea6b194a8c25ae015

Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5510
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: <dongx.yi@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-12-14 14:34:42 +00:00
..
bdev_nvme_cuse_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
bdev_nvme_rpc.c rpc: add keep alive parameter in bdev nvme 2020-12-07 14:57:03 +00:00
bdev_nvme.c nvme: call correct remove_cb when device is removed 2020-12-14 14:34:42 +00:00
bdev_nvme.h rpc: add keep alive parameter in bdev nvme 2020-12-07 14:57:03 +00:00
bdev_ocssd_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
bdev_ocssd.c bdev/nvme: Use nvme_ns for nvme_bdev_ns and ns for spdk_nvme_ns 2020-12-02 10:19:32 +00:00
bdev_ocssd.h bdev/nvme: Use nvme_ns for nvme_bdev_ns and ns for spdk_nvme_ns 2020-12-02 10:19:32 +00:00
common.c bdev/nvme: Get the connected trid from NVMe driver in dump_info_json() 2020-11-16 12:26:35 +00:00
common.h bdev/nvme: Use nvme_ns for nvme_bdev_ns and ns for spdk_nvme_ns 2020-12-02 10:19:32 +00:00
Makefile mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
nvme_rpc.c module/nvme: Fix warning about scanbuild. 2020-10-27 08:42:32 +00:00
vbdev_opal_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
vbdev_opal.c bdev_nvme/opal: Use spdk_bdev_part_base_construct_ext() to pass bdev_name 2020-10-16 08:14:34 +00:00
vbdev_opal.h module/bdev_nvme: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00