summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
authorroot <root>2008-10-12 22:30:33 +0000
committerroot <root>2008-10-12 22:30:33 +0000
commite1114224e950a1549be615d893899b3cdb2a832e (patch)
treef4d374e5ae939dd5072ba864aeb275a4b13cc857 /eio.c
parentcb762b0efda97f04b1bae26ef6d36a1a46f6d06e (diff)
*** empty log message ***rel-3_16
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/eio.c b/eio.c
index 8ea6b51..be7ac60 100644
--- a/eio.c
+++ b/eio.c
@@ -606,12 +606,12 @@ static void grp_try_feed (eio_req *grp)
{
while (grp->size < grp->int2 && !EIO_CANCELLED (grp))
{
- int old_len = grp->size;
+ grp->flags &= ~EIO_FLAG_GROUPADD;
EIO_FEED (grp);
/* stop if no progress has been made */
- if (old_len == grp->size)
+ if (!(grp->flags & EIO_FLAG_GROUPADD))
{
grp->feed = 0;
break;
@@ -1483,6 +1483,8 @@ void eio_grp_add (eio_req *grp, eio_req *req)
{
assert (("cannot add requests to IO::AIO::GRP after the group finished", grp->int1 != 2));
+ grp->flags |= EIO_FLAG_GROUPADD;
+
++grp->size;
req->grp = grp;