diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-01-24 04:28:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:18 -0500 |
commit | 7d184f1f7278e8b034c0aca7fd40714884951624 (patch) | |
tree | 512693d95e36d36fef7e7056a38a90c6b5fba6a6 | |
parent | d5bbd817fe83aed1ee48ed4f478f3887c059f7b9 (diff) | |
download | samba-7d184f1f7278e8b034c0aca7fd40714884951624.tar.gz samba-7d184f1f7278e8b034c0aca7fd40714884951624.tar.bz2 samba-7d184f1f7278e8b034c0aca7fd40714884951624.zip |
r20989: don't mark epoll as set until after the io_submit() succeeds
this is part of the solution to LOCAL-EVENT on fort
(This used to be commit 35f62bc12559e355d4ac73018afe255ea7c5866b)
-rw-r--r-- | source4/lib/events/events_aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/events/events_aio.c b/source4/lib/events/events_aio.c index 327b36bcba..cd3c32a9b8 100644 --- a/source4/lib/events/events_aio.c +++ b/source4/lib/events/events_aio.c @@ -204,10 +204,10 @@ static int setup_epoll_wait(struct aio_event_context *aio_ev) aio_ev->epoll_iocb->u.c.offset = -1; aio_ev->epoll_iocb->u.c.buf = aio_ev->epevent; - aio_ev->is_epoll_set = 1; if (io_submit(aio_ev->ioctx, 1, &aio_ev->epoll_iocb) != 1) { return -1; } + aio_ev->is_epoll_set = 1; return 0; } |