Paolo Bonzini
ba773aded3
block: rename block/aio.h to qemu/aio.h
...
AioContexts are used as a generic event loop even outside the block
layer; move the header file out of block/ just like the implementation
is in util/.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2025-12-27 10:11:12 +01:00
Dr. David Alan Gilbert
e84af3eb72
block: Remove unused aio_task_pool_empty
...
aio_task_pool_empty has been unused since it was added in
6e9b225f73 ("block: introduce aio task pool")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org >
Message-Id: <20240917002007.330689-1-dave@treblig.org >
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru >
2024-09-30 10:53:18 +03:00
Stefano Garzarella
a9515df4d6
block/aio_task: assert max_busy_tasks is greater than 0
...
All code in block/aio_task.c expects `max_busy_tasks` to always
be greater than 0.
Assert this condition during the AioTaskPool creation where
`max_busy_tasks` is set.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com >
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com >
Message-Id: <20211005161157.282396-3-sgarzare@redhat.com >
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com >
2021-10-05 18:56:41 +02:00
Vladimir Sementsov-Ogievskiy
6e9b225f73
block: introduce aio task pool
...
Common interface for aio task loops. To be used for improving
performance of synchronous io loops in qcow2, block-stream,
copy-on-read, and may be other places.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com >
Reviewed-by: Max Reitz <mreitz@redhat.com >
Message-id: 20190916175324.18478-3-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com >
2019-10-10 10:56:17 +02:00