The reported github issue #938 has been reported intermettently. The issue is that the bdev descriptor passed to spdk_bdev_reset() is not valid and causes seg. fault. Current implementation of LUN hot plug is that putting IO channel and removing LUN are done by different poller. Hence if any task management command is issued between the gap, the reported issue is likely to occur. The flag removing is set at the start of LUN hot plug and so spdk_scsi_dev_get_lun() can return NULL even before completing removal by referring the flag removing. Fixes #938. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I1a51d90cc700134e8c0ec399a3ce62620c84ef73 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467212 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
dev.c | ||
lun.c | ||
Makefile | ||
port.c | ||
scsi_bdev.c | ||
scsi_internal.h | ||
scsi_pr.c | ||
scsi_rpc.c | ||
scsi.c | ||
task.c |