Skip to content
  • Kevin Wolf's avatar
    0a4279d9
    block/qapi: Move 'aio' option to file driver · 0a4279d9
    Kevin Wolf authored
    
    
    The option whether or not to use a native AIO interface really isn't a
    generic option for all drivers, but only applies to the native file
    protocols. This patch moves the option in blockdev-add to the
    appropriate places (raw-posix and raw-win32).
    
    We still have to keep the flag BDRV_O_NATIVE_AIO for compatibility
    because so far the AIO option was usually specified on the wrong layer
    (the top-level format driver, which didn't even look at it) and then
    inherited by the protocol driver (where it was actually used). We can't
    forbid this use except in new interfaces.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    0a4279d9
    block/qapi: Move 'aio' option to file driver
    Kevin Wolf authored
    
    
    The option whether or not to use a native AIO interface really isn't a
    generic option for all drivers, but only applies to the native file
    protocols. This patch moves the option in blockdev-add to the
    appropriate places (raw-posix and raw-win32).
    
    We still have to keep the flag BDRV_O_NATIVE_AIO for compatibility
    because so far the AIO option was usually specified on the wrong layer
    (the top-level format driver, which didn't even look at it) and then
    inherited by the protocol driver (where it was actually used). We can't
    forbid this use except in new interfaces.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Loading