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.
This commit is contained in:
Tsuyoshi Uchida 2017-02-24 12:32:51 -08:00 committed by Daniel Verkamp
parent eeb08505d9
commit 0521f34f4f

View File

@ -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);