Revision c4d9d196 block/raw-win32.c
b/block/raw-win32.c | ||
---|---|---|
144 | 144 |
BlockDriverCompletionFunc *cb, void *opaque, int type) |
145 | 145 |
{ |
146 | 146 |
RawWin32AIOData *acb = g_slice_new(RawWin32AIOData); |
147 |
ThreadPool *pool; |
|
147 | 148 |
|
148 | 149 |
acb->bs = bs; |
149 | 150 |
acb->hfile = hfile; |
... | ... | |
157 | 158 |
acb->aio_offset = sector_num * 512; |
158 | 159 |
|
159 | 160 |
trace_paio_submit(acb, opaque, sector_num, nb_sectors, type); |
160 |
return thread_pool_submit_aio(aio_worker, acb, cb, opaque); |
|
161 |
pool = aio_get_thread_pool(bdrv_get_aio_context(bs)); |
|
162 |
return thread_pool_submit_aio(pool, aio_worker, acb, cb, opaque); |
|
161 | 163 |
} |
162 | 164 |
|
163 | 165 |
int qemu_ftruncate64(int fd, int64_t length) |
Also available in: Unified diff