Skip to contentSkip to conversation

Block patches

GIT PULL Applied Stefan Hajnoczi 2 participants 3 messages Jul 24, 2018 Block layer

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

[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.

Fixes ed6e2161 ("linux-aio: properly bubble up errors from initialization")

Message-id: [email protected]

Cc Eric Blake <[email protected]>
Cc Kevin Wolf <[email protected]>
Cc John Snow <[email protected]>
Cc Max Reitz <[email protected]>
Cc Stefan Hajnoczi <[email protected]>
Cc Fam Zheng <[email protected]>
Cc Paolo Bonzini <[email protected]>
---
 block/file-posix.c | 3 +++
 1 file changed, 3 insertions(+)
block/file-posix.c +3 -0
index 60af4b3d51..ad299beb38 100644
@@ -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
#2 lore raw
In reply to Stefan Hajnoczi
Quoted 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.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.

Quoted 9 lines

----------------------------------------------------------------

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