diff options
| author | Stefano Garzarella | 2021-10-26 18:23:45 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2021-11-02 13:03:35 +0100 |
| commit | 512da211010700cdbfaab45c8980ca88958a4ab8 (patch) | |
| tree | 8054868338e2b4c4f12e58e010e60a059ba91f1c /scripts/qapi/common.py | |
| parent | file-posix: add `aio-max-batch` option (diff) | |
| download | qemu-512da211010700cdbfaab45c8980ca88958a4ab8.tar.gz qemu-512da211010700cdbfaab45c8980ca88958a4ab8.tar.xz qemu-512da211010700cdbfaab45c8980ca88958a4ab8.zip | |
linux-aio: add `dev_max_batch` parameter to laio_co_submit()
This new parameter can be used by block devices to limit the
Linux AIO batch size more than the limit set by the AIO context.
file-posix backend supports this, passing its `aio-max-batch` option
previously added.
Add an helper function to calculate the maximum batch size.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20211026162346.253081-3-sgarzare@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi/common.py')
0 files changed, 0 insertions, 0 deletions
