Spdk/lib
wanghonghui 554aaffe3b vhost fix potential memleak in vhost_backend_cleanup
dev->mem_table_fds init in vhost_user_set_mem_table
but dev->mem may init later in vhost_user_set_vring_addr,
so if qemu crash or lost conntion after vhost_user_set_mem_table
and before vhost_user_set_vring_addr,
it's hugepage memory is not being freed

Signed-off-by: Honghui Wang <wanghonghui@ucloud.cn>
Change-Id: I782c106078829ff6691ed3265a5d1718493de90c
Reviewed-on: https://review.gerrithub.io/c/440254
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
2019-01-15 17:01:09 +00:00
..
bdev bdev/error: remove an unnecessary "enabled" flag 2019-01-15 16:43:20 +00:00
blob util: added spdk_divide_round_up() 2018-12-18 17:26:49 +00:00
blobfs log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
conf conf: don't strdup name if section already exist 2018-05-17 17:13:19 +00:00
copy lib/copy: unregister copy engine on finish 2018-10-15 17:42:20 +00:00
env_dpdk env: move VALUE_2MB defines into a new internal header 2019-01-13 00:47:26 +00:00
event app: add option to read json configuration files during startup 2019-01-14 04:48:18 +00:00
ftl ftl: Gathering asynchronous NAND management events 2019-01-11 09:15:39 +00:00
ioat memory: replace all hardcoded 0x200000 with a define 2019-01-13 00:47:26 +00:00
iscsi iscsi/rpc: free partially decoded request 2019-01-09 14:13:58 +00:00
json json_util: add debug logs to spdk_json_decode_object function 2019-01-10 14:31:37 +00:00
jsonrpc jsonrpc: process all requests in buffer 2019-01-10 14:31:37 +00:00
log app: rename traceflag cmdline option to logflag 2018-12-03 19:50:15 +00:00
lvol util: added spdk_divide_round_up() 2018-12-18 17:26:49 +00:00
nbd nbd: fixup return codes 2018-11-28 22:55:09 +00:00
net lib: fix typos in the lib directory 2018-08-24 17:15:12 +00:00
nvme memory: replace all hardcoded 0x200000 with a define 2019-01-13 00:47:26 +00:00
nvmf nvmf/rdma: remove the duplicated code in spdk_nvmf_rdma_request_free 2019-01-14 03:56:28 +00:00
reduce reduce: _allocate_vol_requests: set pointer to NULL after freed 2018-12-18 23:38:51 +00:00
rocksdb thread: Use TLS to accelerate thread look up 2018-12-14 18:54:03 +00:00
rpc rpc: add spdk_rpc_is_method_allowed 2018-12-05 00:35:35 +00:00
scsi scsi: Set TMF code prior to calling spdk_scsi_dev_queue_mgmt_task 2018-12-10 20:34:11 +00:00
sock net/vpp: fix the compilation warning. 2018-12-31 06:29:15 +00:00
thread thread: Eliminate use of pthread_self and thread_ids 2019-01-15 16:53:12 +00:00
trace lib/trace: add 3 RPC method for tpoint_group_mask 2018-12-14 21:29:12 +00:00
ut_mock thread: Eliminate use of pthread_self and thread_ids 2019-01-15 16:53:12 +00:00
util util/string: sprintf_append_realloc to concatenate strings with realloc 2019-01-14 21:22:56 +00:00
vhost vhost fix potential memleak in vhost_backend_cleanup 2019-01-15 17:01:09 +00:00
virtio memory: replace all hardcoded 0x200000 with a define 2019-01-13 00:47:26 +00:00
Makefile ftl: Initial implementation 2019-01-11 09:15:39 +00:00