On Thu, Sep 23, 2021 at 04:31:00PM +0200, Stefano Garzarella wrote: > 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. > > Signed-off-by: Stefano Garzarella > --- > include/block/raw-aio.h | 3 ++- > block/file-posix.c | 2 +- > block/linux-aio.c | 8 +++++--- > 3 files changed, 8 insertions(+), 5 deletions(-) Reviewed-by: Stefan Hajnoczi