Revision 384acbf4 block/qed-table.c
b/block/qed-table.c | ||
---|---|---|
179 | 179 |
{ |
180 | 180 |
int ret = -EINPROGRESS; |
181 | 181 |
|
182 |
async_context_push(); |
|
183 |
|
|
184 | 182 |
qed_read_table(s, s->header.l1_table_offset, |
185 | 183 |
s->l1_table, qed_sync_cb, &ret); |
186 | 184 |
while (ret == -EINPROGRESS) { |
187 | 185 |
qemu_aio_wait(); |
188 | 186 |
} |
189 | 187 |
|
190 |
async_context_pop(); |
|
191 |
|
|
192 | 188 |
return ret; |
193 | 189 |
} |
194 | 190 |
|
... | ... | |
205 | 201 |
{ |
206 | 202 |
int ret = -EINPROGRESS; |
207 | 203 |
|
208 |
async_context_push(); |
|
209 |
|
|
210 | 204 |
qed_write_l1_table(s, index, n, qed_sync_cb, &ret); |
211 | 205 |
while (ret == -EINPROGRESS) { |
212 | 206 |
qemu_aio_wait(); |
213 | 207 |
} |
214 | 208 |
|
215 |
async_context_pop(); |
|
216 |
|
|
217 | 209 |
return ret; |
218 | 210 |
} |
219 | 211 |
|
... | ... | |
282 | 274 |
{ |
283 | 275 |
int ret = -EINPROGRESS; |
284 | 276 |
|
285 |
async_context_push(); |
|
286 |
|
|
287 | 277 |
qed_read_l2_table(s, request, offset, qed_sync_cb, &ret); |
288 | 278 |
while (ret == -EINPROGRESS) { |
289 | 279 |
qemu_aio_wait(); |
290 | 280 |
} |
291 | 281 |
|
292 |
async_context_pop(); |
|
293 | 282 |
return ret; |
294 | 283 |
} |
295 | 284 |
|
... | ... | |
307 | 296 |
{ |
308 | 297 |
int ret = -EINPROGRESS; |
309 | 298 |
|
310 |
async_context_push(); |
|
311 |
|
|
312 | 299 |
qed_write_l2_table(s, request, index, n, flush, qed_sync_cb, &ret); |
313 | 300 |
while (ret == -EINPROGRESS) { |
314 | 301 |
qemu_aio_wait(); |
315 | 302 |
} |
316 | 303 |
|
317 |
async_context_pop(); |
|
318 | 304 |
return ret; |
319 | 305 |
} |
Also available in: Unified diff