Block patches
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(+)
Signature · 1 line
2.17.1
[Qemu-devel] [PULL for-3.0 1/1] block/file-posix: add bdrv_attach_aio_context callback for host dev and cdrom
From: Nishanth Aravamudan <[email protected]>
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.
Message-id: [email protected]
--- block/file-posix.c | 3 +++ 1 file changed, 3 insertions(+)
block/file-posix.c +3 -0
@@ -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,
Signature · 1 line
2.17.1
Peter Maydell
AppliedQuoted 17 lines · Stefan Hajnoczi
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.gittags/block-pull-requestfor you to fetch changes up to
042b757cc77c9580b99ef2781cfb0a2d1bf495a6:
block/file-posix: addbdrv_attach_aio_contextcallback for host dev and cdrom (2018-07-24 14:27:41 +0100)----------------------------------------------------------------
Pull requestRegression fix for host block devices with the file-posix driver when aio=native is in use.
Quoted 9 lines
----------------------------------------------------------------
Nishanth Aravamudan (1):
block/file-posix: addbdrv_attach_aio_contextcallback for host dev
and cdromblock/file-posix.c | 3 +++ 1 file changed, 3 insertions(+)
Applied, thanks.
-- PMM