mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
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)
This commit is contained in:
parent
d5bbd817fe
commit
7d184f1f72
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user