numam-spdk/lib
Shuhei Matsumoto 11774a35a8 iscsi: Stale pointer when deleting PG and then IG
This bug is detected by test/iscsi_tgt/rpc_config

Due to the PG-IG map tree, IG-map is added to PG-map.
When PG was deleted first, PG-map was not deleted but PG was
deleted because PG-map has IG-maps.

PG-IG map tree was designed such that when PG was deleted first,
delete all IG-maps belonging to the PG-map, the PG-map, and then
PG.

By this change stale pointer which will cause memory leak is
removed.

Change-Id: I15c2ef48bad34608e53d0b44459c90a0cffda24d
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/391321
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-12-12 12:46:14 -05:00
..
bdev bdev/virtio: isolate vdev-management from target scan 2017-12-11 19:46:01 -05:00
blob blob: decouple spdk_blob from its actual data 2017-12-11 15:33:35 -05:00
blobfs astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk env: add spdk_mempool_create_ctor 2017-12-11 14:59:12 -05:00
event astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
ioat astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
iscsi iscsi: Stale pointer when deleting PG and then IG 2017-12-12 12:46:14 -05:00
json astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
jsonrpc log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
log log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvol astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
nbd nbd: clean up log messages 2017-12-11 18:01:43 -05:00
net astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
nvme astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
nvmf nvmf: close all the bdevs when delete subsystems. 2017-12-08 17:14:40 -05:00
rocksdb astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
rpc rpc: set g_jsonrpc_server to NULL on close 2017-11-28 16:20:47 -05:00
scsi astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
trace astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util channel: Add spdk_for_each_thread 2017-11-28 15:29:35 -05:00
vhost astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00