qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] coroutinization of flush and discard (split out of NBD series)
@ 2011-10-17 10:32 Paolo Bonzini
  2011-10-17 10:32 ` [Qemu-devel] [PATCH 1/3] block: unify flush implementations Paolo Bonzini
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Paolo Bonzini @ 2011-10-17 10:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf

This series, applying on top of block branch, enables drivers to use
coroutines for flush and discard.  I kept aio_discard after discussing
with Kevin since it should be useful not only for raw-posix-aio, but also
for the userspace iSCSI backend (and in general for backends relying on
an external library that is designed around aio).

BTW, with this patch we get "for free" the invariant that bdrv_aio_*
never returns a NULL acb (Stefan's patches already got to that point
for read/write, of course).

v1->v2:
	add bdrv_co_flush and bdrv_co_discard entry points

Paolo Bonzini (2):
  block: unify flush implementations
  block: add bdrv_co_discard and bdrv_aio_discard support

Stefan Hajnoczi (1):
  block: drop redundant bdrv_flush implementation

 block.c           |  258 +++++++++++++++++++++++++++++++++--------------------
 block.h           |    5 +
 block/blkdebug.c  |    6 --
 block/blkverify.c |    9 --
 block/qcow.c      |    6 --
 block/qcow2.c     |   19 ----
 block/qed.c       |    6 --
 block/raw-posix.c |   18 ----
 block/raw.c       |   23 ++---
 block_int.h       |   10 ++-
 trace-events      |    1 +
 11 files changed, 184 insertions(+), 177 deletions(-)

-- 
1.7.6

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-17 10:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 10:32 [Qemu-devel] [PATCH v2 0/3] coroutinization of flush and discard (split out of NBD series) Paolo Bonzini
2011-10-17 10:32 ` [Qemu-devel] [PATCH 1/3] block: unify flush implementations Paolo Bonzini
2011-10-17 10:32 ` [Qemu-devel] [PATCH 2/3] block: drop redundant bdrv_flush implementation Paolo Bonzini
2011-10-17 10:32 ` [Qemu-devel] [PATCH 3/3] block: add bdrv_co_discard and bdrv_aio_discard support Paolo Bonzini
2011-10-17 10:43 ` [Qemu-devel] [PATCH v2 0/3] coroutinization of flush and discard (split out of NBD series) Kevin Wolf
2011-10-17 10:43   ` Paolo Bonzini
2011-10-17 10:57 ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).