* [Qemu-devel] [PULL for-3.0 0/1] Block patches @ 2018-07-24 14:23 Stefan Hajnoczi 2018-07-24 14:23 ` [Qemu-devel] [PULL for-3.0 1/1] block/file-posix: add bdrv_attach_aio_context callback for host dev and cdrom Stefan Hajnoczi 2018-07-24 15:14 ` [Qemu-devel] [PULL for-3.0 0/1] Block patches Peter Maydell 0 siblings, 2 replies; 3+ messages in thread From: Stefan Hajnoczi @ 2018-07-24 14:23 UTC (permalink / raw) To: qemu-devel; +Cc: Kevin Wolf, qemu-block, Peter Maydell, Max Reitz The following changes since commit 768cef2974fb1fa30dd188b043ea737e13fea477: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' into staging (2018-07-24 10:37:52 +0100) are available in the Git repository at: git://github.com/stefanha/qemu.git tags/block-pull-request for you to fetch changes up to 042b757cc77c9580b99ef2781cfb0a2d1bf495a6: block/file-posix: add bdrv_attach_aio_context callback for host dev and cdrom (2018-07-24 14:27:41 +0100) ---------------------------------------------------------------- Pull request Regression fix for host block devices with the file-posix driver when aio=native is in use. ---------------------------------------------------------------- Nishanth Aravamudan (1): block/file-posix: add bdrv_attach_aio_context callback for host dev and cdrom block/file-posix.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL for-3.0 1/1] block/file-posix: add bdrv_attach_aio_context callback for host dev and cdrom 2018-07-24 14:23 [Qemu-devel] [PULL for-3.0 0/1] Block patches Stefan Hajnoczi @ 2018-07-24 14:23 ` Stefan Hajnoczi 2018-07-24 15:14 ` [Qemu-devel] [PULL for-3.0 0/1] Block patches Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Stefan Hajnoczi @ 2018-07-24 14:23 UTC (permalink / raw) To: qemu-devel; +Cc: Kevin Wolf, qemu-block, Peter Maydell, Max Reitz From: Nishanth Aravamudan <naravamudan@digitalocean.com> In ed6e2161 ("linux-aio: properly bubble up errors from initialzation"), I only added a bdrv_attach_aio_context callback for the bdrv_file driver. There are several other drivers that use the shared aio_plug callback, though, and they will trip the assertion added to aio_get_linux_aio because they did not call aio_setup_linux_aio first. Add the appropriate callback definition to the affected driver definitions. Fixes: ed6e2161 ("linux-aio: properly bubble up errors from initialization") Reported-by: Farhan Ali <alifm@linux.ibm.com> Signed-off-by: Nishanth Aravamudan <naravamudan@digitalocean.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20180718211256.29774-1-naravamudan@digitalocean.com Cc: Eric Blake <eblake@redhat.com> Cc: Kevin Wolf <kwolf@redhat.com> Cc: John Snow <jsnow@redhat.com> Cc: Max Reitz <mreitz@redhat.com> Cc: Stefan Hajnoczi <stefanha@redhat.com> Cc: Fam Zheng <famz@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- block/file-posix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/file-posix.c b/block/file-posix.c index 60af4b3d51..ad299beb38 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -3158,6 +3158,7 @@ static BlockDriver bdrv_host_device = { .bdrv_refresh_limits = raw_refresh_limits, .bdrv_io_plug = raw_aio_plug, .bdrv_io_unplug = raw_aio_unplug, + .bdrv_attach_aio_context = raw_aio_attach_aio_context, .bdrv_co_truncate = raw_co_truncate, .bdrv_getlength = raw_getlength, @@ -3280,6 +3281,7 @@ static BlockDriver bdrv_host_cdrom = { .bdrv_refresh_limits = raw_refresh_limits, .bdrv_io_plug = raw_aio_plug, .bdrv_io_unplug = raw_aio_unplug, + .bdrv_attach_aio_context = raw_aio_attach_aio_context, .bdrv_co_truncate = raw_co_truncate, .bdrv_getlength = raw_getlength, @@ -3410,6 +3412,7 @@ static BlockDriver bdrv_host_cdrom = { .bdrv_refresh_limits = raw_refresh_limits, .bdrv_io_plug = raw_aio_plug, .bdrv_io_unplug = raw_aio_unplug, + .bdrv_attach_aio_context = raw_aio_attach_aio_context, .bdrv_co_truncate = raw_co_truncate, .bdrv_getlength = raw_getlength, -- 2.17.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL for-3.0 0/1] Block patches 2018-07-24 14:23 [Qemu-devel] [PULL for-3.0 0/1] Block patches Stefan Hajnoczi 2018-07-24 14:23 ` [Qemu-devel] [PULL for-3.0 1/1] block/file-posix: add bdrv_attach_aio_context callback for host dev and cdrom Stefan Hajnoczi @ 2018-07-24 15:14 ` Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Peter Maydell @ 2018-07-24 15:14 UTC (permalink / raw) To: Stefan Hajnoczi; +Cc: QEMU Developers, Kevin Wolf, Qemu-block, Max Reitz On 24 July 2018 at 15:23, Stefan Hajnoczi <stefanha@redhat.com> wrote: > The following changes since commit 768cef2974fb1fa30dd188b043ea737e13fea477: > > Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' into staging (2018-07-24 10:37:52 +0100) > > are available in the Git repository at: > > git://github.com/stefanha/qemu.git tags/block-pull-request > > for you to fetch changes up to 042b757cc77c9580b99ef2781cfb0a2d1bf495a6: > > block/file-posix: add bdrv_attach_aio_context callback for host dev and cdrom (2018-07-24 14:27:41 +0100) > > ---------------------------------------------------------------- > Pull request > > Regression fix for host block devices with the file-posix driver when aio=native is in use. > > ---------------------------------------------------------------- > > Nishanth Aravamudan (1): > block/file-posix: add bdrv_attach_aio_context callback for host dev > and cdrom > > block/file-posix.c | 3 +++ > 1 file changed, 3 insertions(+) > Applied, thanks. -- PMM ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-24 15:14 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-07-24 14:23 [Qemu-devel] [PULL for-3.0 0/1] Block patches Stefan Hajnoczi 2018-07-24 14:23 ` [Qemu-devel] [PULL for-3.0 1/1] block/file-posix: add bdrv_attach_aio_context callback for host dev and cdrom Stefan Hajnoczi 2018-07-24 15:14 ` [Qemu-devel] [PULL for-3.0 0/1] Block patches Peter Maydell
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).