Spdk/test/unit/lib/scsi
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
..
dev.c scsi: remove spdk_scsi_dev_print() function 2017-12-12 18:04:20 -05:00
lun.c scsi/lun: fix hotremove with no io_channels open 2018-01-03 14:38:11 -05:00
scsi_bdev.c scsi: convert unmap command to bdev blocks API 2017-12-29 13:43:29 -05:00
scsi.c build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
Makefile test: move SCSI library unit tests to test/unit 2017-06-20 13:46:07 -04:00