numam-spdk/lib/nvmf
Jim Harris 3e96796391 nvmf: assert that subsystem cb_fn/cb_arg don't get set twice
nvmf_subsystem_state_change() protects against going
starting the pause/change/resume chain again if we
haven't completed the previous chain.  But add
some asserts to make sure the cb_fn and cb_args
never get set twice.  This also requires setting
them back to NULL after they've been used.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I56c6c89bfb108223f731d5ac28100abbb746ab2f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5531
Community-CI: Broadcom CI
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-12-14 14:32:29 +00:00
..
ctrlr_bdev.c log: remove internal log.h header 2020-10-15 08:23:39 +00:00
ctrlr_discovery.c nvmf: Async event support for discovery log change 2020-11-11 00:53:57 +00:00
ctrlr.c nvmf: assert that subsystem cb_fn/cb_arg don't get set twice 2020-12-14 14:32:29 +00:00
fc_ls.c nvmf/fc: Data path should not use nport and rport. 2020-12-10 14:37:34 +00:00
fc.c nvmf/fc: Fix unfair LS queue pending processing. 2020-12-10 14:37:34 +00:00
Makefile nvmf: Allow nvmf_transport_qpair_fini to complete asynchronously. 2020-11-18 11:28:02 +00:00
nvmf_fc.h nvmf/fc: Data path should not use nport and rport. 2020-12-10 14:37:34 +00:00
nvmf_internal.h nvmf: The maximum number of namespaces a subsystem may contain must now 2020-12-01 10:20:43 +00:00
nvmf_rpc.c lib/nvmf: support ABI compatibility for spdk_nvmf_transport_opts 2020-12-11 11:10:16 +00:00
nvmf.c nvmf: assert that subsystem cb_fn/cb_arg don't get set twice 2020-12-14 14:32:29 +00:00
rdma.c nvmf/rdma: Ignore LAST_WQE_REACHED for iWARP 2020-12-11 11:09:58 +00:00
spdk_nvmf.map nvmf: Add spdk_nvmf_subsystem_disconnect_host 2020-10-15 08:24:05 +00:00
subsystem.c nvmf: The maximum number of namespaces a subsystem may contain must now 2020-12-01 10:20:43 +00:00
tcp.c nvmf/tcp: Fix the typo in print and remove the unnecessary empty line. 2020-11-26 10:16:36 +00:00
transport.c lib/nvmf: support ABI compatibility for spdk_nvmf_transport_opts 2020-12-11 11:10:16 +00:00
transport.h nvmf: Allow nvmf_transport_qpair_fini to complete asynchronously. 2020-11-18 11:28:02 +00:00