[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.1-testing] ioemu: Fix IDE DMA thread race.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1201770720 0 # Node ID df56245d48f51e6cdd2139434af9f835681a92c0 # Parent d4f63f0d162f801bc284d42e059d8bbb0d552afb ioemu: Fix IDE DMA thread race. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- tools/ioemu/hw/ide.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r d4f63f0d162f -r df56245d48f5 tools/ioemu/hw/ide.c --- a/tools/ioemu/hw/ide.c Tue Jan 29 22:09:20 2008 +0000 +++ b/tools/ioemu/hw/ide.c Thu Jan 31 09:12:00 2008 +0000 @@ -422,7 +422,8 @@ static void *dma_thread_func(void* opaqu if (rv != 0) { if (read(file_pipes[0], &req, sizeof(req)) == 0) return NULL; - dma_thread_loop(req); + if (req->status & BM_STATUS_DMAING) + dma_thread_loop(req); } else { if (suspend_requested) { /* Need to tidy up the DMA thread so that we don't end up _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |