Spdk/lib
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
..
accel lib/accel: change max batch size to match idxd batch max 2020-11-18 11:27:23 +00:00
bdev bdev: virtio blk read max size and segs 2020-12-10 14:39:45 +00:00
blob blob: add more detail to bs_load_use_pages_cpl assert 2020-12-14 14:29:09 +00:00
blobfs lib/blobfs: remove legacy config support 2020-10-20 02:42:16 +00:00
conf lib/conf: check pointer return value when use calloc 2020-11-11 01:02:31 +00:00
env_dpdk lib/env: move minimum DPDK version to DPDK 19.11 2020-12-04 09:51:00 +00:00
env_ocf lib/thead: print error log when create mempool or ring failed 2020-11-05 09:41:06 +00:00
event event: replace master_core with main_core in spdk_app_opts 2020-12-03 09:41:07 +00:00
ftl lib/ftl: add assert check for ftl_wptr_from_band 2020-11-17 08:25:31 +00:00
idxd lib/idxd: small code cleanup 2020-10-22 22:43:28 +00:00
ioat ioat: hide 2MiB boundary memory check in spdk_vtophys() 2020-11-25 17:15:13 +00:00
iscsi iscsi: get the member after the NULL check 2020-12-01 10:21:50 +00:00
json json: add spdk_json_free_object() 2020-10-19 10:02:10 +00:00
jsonrpc lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
log log: remove internal log.h header 2020-10-15 08:23:39 +00:00
lvol bdev: extend interface with get module ctx 2020-12-01 10:20:56 +00:00
nbd lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
net lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
notify log: remove internal log.h header 2020-10-15 08:23:39 +00:00
nvme nvme: call correct remove_cb when device is removed 2020-12-14 14:34:42 +00:00
nvmf nvmf: assert that subsystem cb_fn/cb_arg don't get set twice 2020-12-14 14:32:29 +00:00
rdma rdma: Don't log rdma_disconnect error for iWARP in verbs provider 2020-12-01 10:21:03 +00:00
reduce log: remove internal log.h header 2020-10-15 08:23:39 +00:00
rocksdb remove unneeded spdk_internal/thread.h includes 2020-12-10 14:38:04 +00:00
rpc RPC: update the error message for current RPC state 2020-07-31 08:21:37 +00:00
scsi lib: Use PRId64 for portability 2020-11-20 11:01:37 +00:00
sock lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
thread thread: don't output error in case of EAGAIN for interrupt mode 2020-11-25 08:52:02 +00:00
trace trace: disable trace by set num-trace-entries=0 2020-11-26 10:16:26 +00:00
ut_mock mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
util interrupt: new fd_group in lib/util 2020-10-23 16:23:48 +00:00
vhost vhost-scsi: fix hang when removing target 2020-11-19 09:23:39 +00:00
virtio virtio: add transitional virtio device support 2020-11-20 11:00:53 +00:00
vmd lib: Use PRId64 for portability 2020-11-20 11:01:37 +00:00
Makefile vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00