From: Alberto Faria <afaria@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org, Alberto Faria <afaria@redhat.com>,
Ari Sundholm <ari@tuxera.com>, Kevin Wolf <kwolf@redhat.com>,
Hanna Reitz <hreitz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>,
"Denis V. Lunev" <den@openvz.org>,
Vladimir Sementsov-Ogievskiy <v.sementsov-og@mail.ru>,
Eric Blake <eblake@redhat.com>, John Snow <jsnow@redhat.com>,
Stefan Weil <sw@weilnetz.de>, Jeff Cody <codyprime@gmail.com>
Subject: [PATCH 0/7] Implement bdrv_{pread, pwrite, pwrite_sync, pwrite_zeroes}() using generated_co_wrapper
Date: Fri, 13 May 2022 00:38:42 +0100 [thread overview]
Message-ID: <20220512233849.2219275-1-afaria@redhat.com> (raw)
Start by making the interfaces of analogous non-coroutine and coroutine
functions consistent with each other, then implement the non-coroutine
ones using generated_co_wrapper.
For the bdrv_pwrite_sync() case, also add the missing
bdrv_co_pwrite_sync() function.
Alberto Faria (7):
block: Add a 'flags' param to bdrv_{pread,pwrite,pwrite_sync}()
block: Change bdrv_{pread,pwrite,pwrite_sync}() param order
block: Make bdrv_{pread,pwrite}() return 0 on success
block: Make bdrv_co_pwrite() take a const buffer
block: Make 'bytes' param of bdrv_co_{pread,pwrite,preadv,pwritev}()
an int64_t
block: Implement bdrv_{pread,pwrite,pwrite_zeroes}() using
generated_co_wrapper
block: Add bdrv_co_pwrite_sync()
block/blklogwrites.c | 6 +--
block/bochs.c | 10 ++---
block/cloop.c | 12 +++---
block/coroutines.h | 4 +-
block/crypto.c | 8 ++--
block/dmg.c | 36 ++++++++--------
block/io.c | 53 ++----------------------
block/parallels-ext.c | 6 +--
block/parallels.c | 12 +++---
block/qcow.c | 41 +++++++++----------
block/qcow2-bitmap.c | 14 +++----
block/qcow2-cache.c | 9 ++--
block/qcow2-cluster.c | 19 +++++----
block/qcow2-refcount.c | 58 +++++++++++++-------------
block/qcow2-snapshot.c | 51 +++++++++++------------
block/qcow2.c | 53 ++++++++++++------------
block/qed.c | 13 ++----
block/vdi.c | 14 +++----
block/vhdx-log.c | 26 ++++++------
block/vhdx.c | 36 ++++++++--------
block/vmdk.c | 70 ++++++++++++++------------------
block/vpc.c | 23 ++++++-----
block/vvfat.c | 11 ++---
include/block/block-io.h | 22 ++++++----
include/block/block_int-io.h | 4 +-
tests/unit/test-block-iothread.c | 12 +++---
26 files changed, 292 insertions(+), 331 deletions(-)
--
2.35.3
next reply other threads:[~2022-05-12 23:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-12 23:38 Alberto Faria [this message]
2022-05-12 23:38 ` [PATCH 1/7] block: Add a 'flags' param to bdrv_{pread, pwrite, pwrite_sync}() Alberto Faria
2022-05-13 7:34 ` Paolo Bonzini
2022-05-12 23:38 ` [PATCH 2/7] block: Change bdrv_{pread, pwrite, pwrite_sync}() param order Alberto Faria
2022-05-13 7:34 ` Paolo Bonzini
2022-05-12 23:38 ` [PATCH 3/7] block: Make bdrv_{pread,pwrite}() return 0 on success Alberto Faria
2022-05-13 8:22 ` [PATCH 3/7] block: Make bdrv_{pread, pwrite}() " Paolo Bonzini
2022-05-13 14:56 ` Alberto Faria
2022-05-12 23:51 ` [PATCH 4/7] block: Make bdrv_co_pwrite() take a const buffer Alberto Faria
2022-05-13 7:38 ` Paolo Bonzini
2022-05-12 23:51 ` [PATCH 5/7] block: Make 'bytes' param of bdrv_co_{pread, pwrite, preadv, pwritev}() an int64_t Alberto Faria
2022-05-13 7:39 ` Paolo Bonzini
2022-05-12 23:51 ` [PATCH 6/7] block: Implement bdrv_{pread, pwrite, pwrite_zeroes}() using generated_co_wrapper Alberto Faria
2022-05-13 7:41 ` Paolo Bonzini
2022-05-13 14:50 ` Alberto Faria
2022-05-12 23:51 ` [PATCH 7/7] block: Add bdrv_co_pwrite_sync() Alberto Faria
2022-05-13 7:34 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220512233849.2219275-1-afaria@redhat.com \
--to=afaria@redhat.com \
--cc=ari@tuxera.com \
--cc=codyprime@gmail.com \
--cc=den@openvz.org \
--cc=eblake@redhat.com \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=sw@weilnetz.de \
--cc=v.sementsov-og@mail.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.