diff options
| author | Stefano Garzarella | 2021-10-26 18:23:46 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2021-11-02 13:03:35 +0100 |
| commit | 68d7946648a5c364a4df187804d37f09a318b50f (patch) | |
| tree | f4e80de1ed1e5127cd4c5ec7788202eb753db49d /include/exec/cpu-common.h | |
| parent | linux-aio: add `dev_max_batch` parameter to laio_co_submit() (diff) | |
| download | qemu-68d7946648a5c364a4df187804d37f09a318b50f.tar.gz qemu-68d7946648a5c364a4df187804d37f09a318b50f.tar.xz qemu-68d7946648a5c364a4df187804d37f09a318b50f.zip | |
linux-aio: add `dev_max_batch` parameter to laio_io_unplug()
Between the submission of a request and the unplug, other devices
with larger limits may have been queued new requests without flushing
the batch.
Using the new `dev_max_batch` parameter, laio_io_unplug() can check
if the batch exceeds the device limit to flush the current batch.
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-4-sgarzare@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/exec/cpu-common.h')
0 files changed, 0 insertions, 0 deletions
