qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 4/4] block: add bdrv_co_discard and bdrv_aio_dis


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH 4/4] block: add bdrv_co_discard and bdrv_aio_discard support
Date: Fri, 14 Oct 2011 16:23:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0

Am 14.10.2011 10:41, schrieb Paolo Bonzini:
> This similarly adds support for coroutine and asynchronous discard.
> 
> Signed-off-by: Paolo Bonzini <address@hidden>

Do we really need bdrv_discard and bdrv_aio_discard in the backends? I
think it makes sense to have a bdrv_aio_discard() in block.h as AIO
generally fits well for device models, but I would just require
bdrv_co_discard for any block drivers implementing discard.

>       I was not sure if qcow2 could be changed to co_discard, though
>       I suspected yes.

As discussed on IRC: Yes, it just must make sure to take s->lock.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]