* [Qemu-devel] [PATCH] linux-aio: Fix typo in read() EINTR check
@ 2010-04-14 11:13 Stefan Hajnoczi
2010-04-14 15:54 ` Kevin Wolf
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hajnoczi @ 2010-04-14 11:13 UTC (permalink / raw)
To: qemu-devel; +Cc: hch, Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
linux-aio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-aio.c b/linux-aio.c
index 5e892b0..68f4b3d 100644
--- a/linux-aio.c
+++ b/linux-aio.c
@@ -123,7 +123,7 @@ static void qemu_laio_completion_cb(void *opaque)
do {
ret = read(s->efd, &val, sizeof(val));
- } while (ret == 1 && errno == EINTR);
+ } while (ret == -1 && errno == EINTR);
if (ret == -1 && errno == EAGAIN)
break;
--
1.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-aio: Fix typo in read() EINTR check
2010-04-14 11:13 [Qemu-devel] [PATCH] linux-aio: Fix typo in read() EINTR check Stefan Hajnoczi
@ 2010-04-14 15:54 ` Kevin Wolf
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2010-04-14 15:54 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: qemu-devel, hch
Am 14.04.2010 13:13, schrieb Stefan Hajnoczi:
> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
> ---
Thanks, applied to the block branch.
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-14 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-14 11:13 [Qemu-devel] [PATCH] linux-aio: Fix typo in read() EINTR check Stefan Hajnoczi
2010-04-14 15:54 ` Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).