From 0521f34f4ff9c585213ddf41351fc5e9ecb65ed1 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Uchida Date: Fri, 24 Feb 2017 12:32:51 -0800 Subject: [PATCH] scsi: do not unregister bdev during lun delete (#116) The bdev was not created by the SCSI layer, so spdk_bdev_unregister shouldn't be called here. --- lib/scsi/lun.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/scsi/lun.c b/lib/scsi/lun.c index 9de263afa..48afcab8f 100644 --- a/lib/scsi/lun.c +++ b/lib/scsi/lun.c @@ -383,11 +383,6 @@ spdk_scsi_lun_delete(const char *lun_name) spdk_scsi_dev_delete_lun(dev, lun); } - /* LUNs are always created in a pair with a blockdev. - * Delete the blockdev associated with this lun. - */ - spdk_bdev_unregister(lun->bdev); - /* Destroy this lun */ spdk_scsi_lun_destruct(lun); pthread_mutex_unlock(&g_spdk_scsi.mutex);