file-posix: add `aio-max-batch` option
commit684960d46267d6e6443b39ee98b3a95632ba8dc6
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 26 Oct 2021 16:23:44 +0000 (26 18:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 2 Nov 2021 12:03:30 +0000 (2 13:03 +0100)
treed265c1c5e59a570e2a7bab20225b2a2d8014e47c
parent304332039014679b809f606e2f227ee0fc43a451
file-posix: add `aio-max-batch` option

Commit d7ddd0a161 ("linux-aio: limit the batch size using
`aio-max-batch` parameter") added a way to limit the batch size
of Linux AIO backend for the entire AIO context.

The same AIO context can be shared by multiple devices, so
latency-sensitive devices may want to limit the batch size even
more to avoid increasing latency.

For this reason we add the `aio-max-batch` option to the file
backend, which will be used by the next commits to limit the size of
batches including requests generated by this device.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20211026162346.253081-2-sgarzare@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c
qapi/block-core.json