Spdk/module/bdev
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
..
aio bdev/aio: access 'spdk_bdev_io' before 'spdk_bdev_io_complete' called 2020-12-07 14:56:54 +00:00
compress lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
crypto bdev/crypto: lib/env: move minimum DPDK version to DPDK 19.11 2020-12-04 09:51:00 +00:00
delay lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
error lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
ftl lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
gpt module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
iscsi bdev_iscsi: replace master with main 2020-12-03 09:41:07 +00:00
lvol lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
malloc module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
null module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
nvme nvme: call correct remove_cb when device is removed 2020-12-14 14:34:42 +00:00
ocf bdev_ocf: replace "master vbdev" with "main vbdev" 2020-12-03 09:41:07 +00:00
passthru lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
pmem lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
raid module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
rbd lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
split lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
uring lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
virtio bdev: virtio blk read max size and segs 2020-12-10 14:39:45 +00:00
zone_block module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
Makefile bdev: move bdev_rpc library contents 2020-09-25 11:43:42 +00:00