4cd6544d44
The possible issue could be following if you shutdown NVMe-oF target with TCP transport as an example, ================================================================= ==61022==ERROR: LeakSanitizer: detected memory leaks Direct leak of 560 byte(s) in 1 object(s) allocated from: #0 0x7ffff6efcfe0 in calloc (/lib64/libasan.so.3+0xc6fe0) #1 0x4c6216 in spdk_nvmf_tcp_listen /home/ziyeyang/spdk/lib/nvmf/tcp.c:680 Indirect leak of 48 byte(s) in 1 object(s) allocated from: #0 0x7ffff6efcfe0 in calloc (/lib64/libasan.so.3+0xc6fe0) #1 0x4a77b8 in spdk_posix_sock_create /home/ziyeyang/spdk/lib/sock/posix/posix.c:291 After checking the issue, it seems that we did not call spdk_nvmf_transport_stop_listen when removing the subsystem listener. And this patch can solve this issue. Change-Id: Ic75d99cb0c6a3ba1c47ac79a2d8e3887b0f6b012 Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447020 Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: yidong0635 <dongx.yi@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
app | ||
bdev | ||
blobfs | ||
blobstore | ||
common | ||
config_converter | ||
cpp_headers | ||
env | ||
event | ||
ftl | ||
ioat | ||
iscsi_tgt | ||
json_config | ||
lvol | ||
nvme | ||
nvmf | ||
ocf | ||
pmem | ||
rpc_client | ||
spdkcli | ||
unit | ||
vhost | ||
Makefile | ||
spdk_cunit.h |