summary refs log tree commit diff stats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-10-06 15:17:18 +0200
committerEric Blake <eblake@redhat.com>2021-10-15 16:00:07 -0500
commitaa78b825162163d2c51903490d67c10a689eac6b (patch)
tree1f482f8256cd70947cc4f802cc3dc1c7d07f8d9e /scripts/qapi/source.py
parent14149710f98fcf7af13eeb6cf6040b33c01b9792 (diff)
downloadfocaccia-qemu-aa78b825162163d2c51903490d67c10a689eac6b.tar.gz
focaccia-qemu-aa78b825162163d2c51903490d67c10a689eac6b.zip
block-backend: drop INT_MAX restriction from blk_check_byte_request()
blk_check_bytes_request is called from blk_co_do_preadv,
blk_co_do_pwritev_part, blk_co_do_pdiscard and blk_co_copy_range
before (maybe) calling throttle_group_co_io_limits_intercept() (which
has int64_t argument) and then calling corresponding bdrv_co_ function.
bdrv_co_ functions are OK with int64_t bytes as well.

So dropping the check for INT_MAX we just get same restrictions as in
bdrv_ layer: discard and write-zeroes goes through
bdrv_check_qiov_request() and are allowed to be 64bit. Other requests
go through bdrv_check_request32() and still restricted by INT_MAX
boundary.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211006131718.214235-13-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions