Spdk/test/unit/lib
Dariusz Stojaczyk fc03485b9d scsi/lun: fix hotremove with no io_channels open
When LUN with no io_channels is being hotremoved,
the hotremove poller was being started on the core
pointed by lun->lcore. However, this field is only
valid when there are io_channels open. For example,
when user tries to delete a bdev that's attached to
an unused vhost controller (no io_channels ever opened)
the scsi layer could start a hotremove poller on
lun->lcore == 0. If SPDK runs on a different cpuset -
not containing CPU0 - SPDK could even segfault.

Change-Id: I31a363352875d944f220b0296d5cfe570319023d
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/371863
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-01-03 14:38:11 -05:00
..
bdev blob: change spdk_blob_close parameter to spdk_blob * 2017-12-15 12:28:44 -05:00
blob blob: Add read_only opt and spdk_bs_md_set_read_only to blobs. 2018-01-03 12:00:30 -05:00
blobfs blobfs, tree: fix a bug in spdk_tree_insert_buffer 2017-08-15 16:36:41 -04:00
event ut/event: add fatal assert for allocation 2017-10-17 11:34:38 -04:00
ioat test: move IOAT library unit test to test/unit 2017-06-21 18:57:35 -04:00
iscsi build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
json test/json_util_ut: assert that string is valid 2017-07-12 18:13:23 -04:00
jsonrpc test: remove all uses of strcpy in the code 2017-12-12 17:34:45 -05:00
log log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvol blob: change spdk_bs_iter_next parameter to spdk_blob * 2017-12-15 12:28:44 -05:00
nvme nvme: Add support of hot remove vfio-attached devices in pcie layer. 2017-12-19 13:07:20 -05:00
nvmf nvmf: Add synchronization primitives for subsystems 2018-01-03 11:58:11 -05:00
scsi scsi/lun: fix hotremove with no io_channels open 2018-01-03 14:38:11 -05:00
util build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
vhost vhost: Replace RTE_MAX_LCORE by spdk_env_get_last_core() 2017-12-28 12:03:40 -05:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00