static void scsi_destroy(SCSIDevice *dev)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);



    scsi_disk_purge_requests(s);

    blockdev_mark_auto_del(s->qdev.conf.dinfo->bdrv);

}

static void scsi_destroy(SCSIDevice *dev)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);



    scsi_disk_purge_requests(s);

    blockdev_mark_auto_del(s->qdev.conf.dinfo->bdrv);

}

static void FUNC_0(SCSIDevice *VAR_0)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);



    scsi_disk_purge_requests(s);

    blockdev_mark_auto_del(s->qdev.conf.dinfo->bdrv);

}

static void FUNC_0(SCSIDevice *VAR_0)
{ SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0); scsi_disk_purge_requests(s); blockdev_mark_auto_del(s->qdev.conf.dinfo->bdrv); }