+1
−1
Loading
The new, simplified scsi lun hotremove path doesn't call lun->hotremove_cb if there's no io_channel allocated for that lun. Vhost still depends on that callback and currently, when the underlying bdev is removed, vhost is left completely unnotified. It keeps a dangling pointer to a scsi lun and will eventually crash. The vhost scsi controller also can't be removed in this case. This reverts commit 19182431. Change-Id: I330330fdd7d6941db070d972192481f535f62977 Signed-off-by:Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454836 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Paul Luse <paul.e.luse@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>