|
From: | Dmitry Fleytman |
Subject: | Re: [Qemu-devel] [PATCH 1/1 V6] VMWare PVSCSI paravirtual device implementation |
Date: | Thu, 18 Apr 2013 15:11:47 +0300 |
Il 18/04/2013 11:38, Dmitry Fleytman ha scritto:
>It should happen in qbus_reset_all. The scsi-disk device will cancel
> > +static void
> > +pvscsi_free_queue(PVSCSIRequestList *req_list)
>
> This shouldn't be needed.
>
>
>
> Doesn't one need to clear completion queue on reset command arrival from
> driver?
>
pending requests, and these will be moved from the pending_queue to the
completion_queue. I think you can call pvscsi_process_completion_queue
instead of pvscsi_free_queue.
Paolo
>
> > +{
> > + PVSCSIRequest *pvscsi_req;
> > +
> > + while (!QTAILQ_EMPTY(req_list)) {
> > + pvscsi_req = QTAILQ_FIRST(req_list);
> > + QTAILQ_REMOVE(req_list, pvscsi_req, next);
> > + g_free(pvscsi_req);
> > + }
> > +}
> > +
[Prev in Thread] | Current Thread | [Next in Thread] |