All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] nbd: Use common read/write-all qio functions
@ 2017-09-05 19:11 Eric Blake
  2017-09-05 19:11 ` [Qemu-devel] [PATCH 1/3] io: Yield rather than wait when already in coroutine Eric Blake
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Eric Blake @ 2017-09-05 19:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: berrange, pbonzini, qemu-block

Now that Daniel just added convenience qio channel looping functions,
we might as well use it in NBD instead of open-coding our own.  In
doing so, fix a couple of short-falls noticed in the qio code.

If Dan is happy with this, I can take the series through the NBD queue.

[The diffstat is slightly misleading - it's a net reduction in lines
of code, but the added comments hide that fact]

Eric Blake (3):
  io: Yield rather than wait when already in coroutine
  io: Add new qio_channel_read{,v}_all_eof functions
  nbd: Use new qio_channel_*_all() functions

 include/block/nbd.h        |  2 --
 include/io/channel.h       | 53 ++++++++++++++++++++++++++++++++++++++++
 nbd/nbd-internal.h         | 41 ++++++-------------------------
 block/nbd-client.c         | 15 ++++++------
 io/channel.c               | 60 ++++++++++++++++++++++++++++++++++++++--------
 nbd/common.c               | 45 ----------------------------------
 tests/qemu-iotests/083.out |  8 +++----
 7 files changed, 121 insertions(+), 103 deletions(-)

-- 
2.13.5

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

end of thread, other threads:[~2017-09-06 15:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-05 19:11 [Qemu-devel] [PATCH 0/3] nbd: Use common read/write-all qio functions Eric Blake
2017-09-05 19:11 ` [Qemu-devel] [PATCH 1/3] io: Yield rather than wait when already in coroutine Eric Blake
2017-09-06  8:50   ` Daniel P. Berrange
2017-09-06 14:53     ` Paolo Bonzini
2017-09-06 15:16     ` Eric Blake
2017-09-05 19:11 ` [Qemu-devel] [PATCH 2/3] io: Add new qio_channel_read{, v}_all_eof functions Eric Blake
2017-09-06  8:51   ` Daniel P. Berrange
2017-09-05 19:11 ` [Qemu-devel] [PATCH 3/3] nbd: Use new qio_channel_*_all() functions Eric Blake
2017-09-06  8:52   ` Daniel P. Berrange
2017-09-06 15:14 ` [Qemu-devel] [PATCH 0/3] nbd: Use common read/write-all qio functions Eric Blake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.