Spdk/lib/bdev
Ziye Yang 75dce8a25c iscsi, initiator: solve the use after issue.
In our current code, when we call the following statement:
spdk_bdev_destruct_done(&lun->bdev, 0);

Actually lun is already freed in bdev_iscsi_lun_cleanup function
(called by iscsi_free_lun). So this patch can be used to
prevent this issue by changing the order.

Change-Id: I5ec02319b8205fafc4d8074511f5a334b9bbb3ad
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/417630
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-07-03 17:44:39 +00:00
..
aio rpc/bdev: construct RPC return a string instead array 2018-06-22 21:12:43 +00:00
error bdev: add delete_error_bdev call 2018-06-22 17:24:05 +00:00
gpt thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
iscsi iscsi, initiator: solve the use after issue. 2018-07-03 17:44:39 +00:00
lvol rpc/bdev: construct RPC return a string instead array 2018-06-22 21:12:43 +00:00
malloc rpc/bdev: construct RPC return a string instead array 2018-06-22 21:12:43 +00:00
null bdev: add delete_null_bdev call 2018-07-02 22:53:18 +00:00
nvme bdev/nvme: update NS bdevs after NS attribute notice event 2018-06-28 17:46:41 +00:00
passthru bdev: add delete_passthru_bdev call 2018-07-02 22:53:18 +00:00
pmem bdev: add delete_pmem_bdev call 2018-07-02 22:53:18 +00:00
rbd bdev/rbd: change the poller to timer poller 2018-07-03 16:40:18 +00:00
rpc bdev: encapsulate private members of spdk_bdev 2018-06-26 20:04:07 +00:00
split thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
virtio bdev/virtio: support event index 2018-07-02 19:17:13 +00:00
bdev.c bdev: Make an internal version of spdk_bdev_io_type_supported 2018-06-28 18:17:02 +00:00
Makefile bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00
part.c bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
scsi_nvme.c bdev: move error union to internal spdk_bdev_io struct 2018-06-26 20:04:07 +00:00
vtune.c bdev: disable new GCC 7 warning in VTune code 2018-03-19 15:58:15 -04:00