vhost_scsi: do not abort on unfinished scsi tasks in destroy_device

Replaced rte_panic with SPDK_ERRLOG (for now).

Change-Id: I7ca012368ba6a49cbbf0397b3750a86da4ab776a
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/365026
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2017-06-12 20:53:18 +02:00 committed by Jim Harris
parent db751c1625
commit 6bd3e2a0a7

View File

@ -785,7 +785,7 @@ destroy_device(int vid)
}
if (vdev->task_cnt > 0) {
rte_panic("%s: pending tasks did not finish in 1s.\n", vdev->name);
SPDK_ERRLOG("%s: pending tasks did not finish in 1s.\n", vdev->name);
}