mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 14:08:32 +00:00
aio: rename AIOPool to AIOCBInfo
Now that AIOPool no longer keeps a freelist, it isn't really a "pool" anymore. Rename it to AIOCBInfo and make it const since it no longer needs to be modified. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
committed by
Kevin Wolf
parent
d37c975fb1
commit
d7331bed11
@@ -216,7 +216,7 @@ static void thread_pool_cancel(BlockDriverAIOCB *acb)
|
||||
qemu_mutex_unlock(&lock);
|
||||
}
|
||||
|
||||
static AIOPool thread_pool_cb_pool = {
|
||||
static const AIOCBInfo thread_pool_aiocb_info = {
|
||||
.aiocb_size = sizeof(ThreadPoolElement),
|
||||
.cancel = thread_pool_cancel,
|
||||
};
|
||||
@@ -226,7 +226,7 @@ BlockDriverAIOCB *thread_pool_submit_aio(ThreadPoolFunc *func, void *arg,
|
||||
{
|
||||
ThreadPoolElement *req;
|
||||
|
||||
req = qemu_aio_get(&thread_pool_cb_pool, NULL, cb, opaque);
|
||||
req = qemu_aio_get(&thread_pool_aiocb_info, NULL, cb, opaque);
|
||||
req->func = func;
|
||||
req->arg = arg;
|
||||
req->state = THREAD_QUEUED;
|
||||
|
||||
Reference in New Issue
Block a user