From 6bd3e2a0a7bd55b4e025ebc6fde21e54d6060789 Mon Sep 17 00:00:00 2001 From: Dariusz Stojaczyk Date: Mon, 12 Jun 2017 20:53:18 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/365026 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- lib/vhost/vhost_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/vhost_scsi.c b/lib/vhost/vhost_scsi.c index bafab3b58..316c72e3b 100644 --- a/lib/vhost/vhost_scsi.c +++ b/lib/vhost/vhost_scsi.c @@ -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); }