|
| From: | Paolo Bonzini |
| Subject: | Re: [Qemu-devel] [PATCH v5 10/11] dataplane: add virtio-blk data plane code |
| Date: | Thu, 06 Dec 2012 08:35:55 +0100 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
Il 05/12/2012 21:47, Stefan Hajnoczi ha scritto:
> +
> +/* Block until pending requests have completed
> + *
> + * The vring continues to be serviced so ensure no new requests will be added
> + * to avoid races.
> + */
> +void virtio_blk_data_plane_drain(VirtIOBlockDataPlane *s)
> +{
> + qemu_mutex_lock(&s->num_reqs_lock);
> + while (s->num_reqs > 0) {
> + qemu_cond_wait(&s->no_reqs_cond, &s->num_reqs_lock);
> + }
> + qemu_mutex_unlock(&s->num_reqs_lock);
> +}
Hi Stefan,
so this was not changed from v4?
Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |