numam-spdk/lib/nvmf
Shuhei Matsumoto db96437e42 lib/nvmf: Include redirection into spdk_nvmf_request_complete()
Some cases need to redirect spdk_nvmf_request_complete() to the
thread pointed by qpair->group->thread. Abort command will be
included such cases but abort command is executed in the different
file ctrlr_bdev.c. For the convenience, change spdk_nvmf_request_complete()
to include the redirection and extract the core operation of
spdk_nvmf_request_complete() into a private function
_nvmf_request_complete(). In ctrlr.c, call _nvmf_request_complete()
for non-redirected cases.

Besides, locate the definition of _nvmf_request_complete() under the
definition of  spdk_nvmf_request_complete() in a file to trick the format
check tool to avoid false positive, and fix a spell error together.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I85546c80e99e01686c9470653e0ddafcf7c6a391
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2115
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2020-06-10 13:54:40 +00:00
..
ctrlr_bdev.c all: Fix warnings found by gcc 9.3.0 and 9.3.1 2020-06-02 09:51:57 +00:00
ctrlr_discovery.c lib/nvmf: remove spdk_ and _spdk prefix from functions. 2020-06-01 09:21:14 +00:00
ctrlr.c lib/nvmf: Include redirection into spdk_nvmf_request_complete() 2020-06-10 13:54:40 +00:00
fc_ls.c lib/nvmf: remove spdk_ and _spdk prefix from functions. 2020-06-01 09:21:14 +00:00
fc.c nvmf: move cdata subset from transport to ctrlr 2020-06-05 09:04:01 +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
nvmf_fc.h lib/nvmf: remove spdk_ and _spdk prefix from functions. 2020-06-01 09:21:14 +00:00
nvmf_internal.h nvmf: move cdata subset from transport to ctrlr 2020-06-05 09:04:01 +00:00
nvmf_rpc.c rpc: Deprecate max_qpairs_per_ctrlr parameter 2020-06-04 07:20:45 +00:00
nvmf.c rpc: Deprecate max_qpairs_per_ctrlr parameter 2020-06-04 07:20:45 +00:00
rdma.c nvmf: move cdata subset from transport to ctrlr 2020-06-05 09:04:01 +00:00
spdk_nvmf.map nvmf: remove spdk_nvmf_tgt_transport_write_config_json() 2020-06-05 09:03:26 +00:00
subsystem.c lib/nvmf: remove spdk_ and _spdk prefix from functions. 2020-06-01 09:21:14 +00:00
tcp.c nvmf: move cdata subset from transport to ctrlr 2020-06-05 09:04:01 +00:00
transport.c lib/nvmf: remove spdk_ and _spdk prefix from functions. 2020-06-01 09:21:14 +00:00
transport.h lib/nvmf: remove spdk_ and _spdk prefix from functions. 2020-06-01 09:21:14 +00:00