svn commit: samba r20989 - in branches/SAMBA_4_0/source/lib/events: .

tridge at samba.org tridge at samba.org
Wed Jan 24 04:28:17 GMT 2007


Author: tridge
Date: 2007-01-24 04:28:17 +0000 (Wed, 24 Jan 2007)
New Revision: 20989

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20989

Log:

don't mark epoll as set until after the io_submit() succeeds

this is part of the solution to LOCAL-EVENT on fort

Modified:
   branches/SAMBA_4_0/source/lib/events/events_aio.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/events/events_aio.c
===================================================================
--- branches/SAMBA_4_0/source/lib/events/events_aio.c	2007-01-24 02:48:40 UTC (rev 20988)
+++ branches/SAMBA_4_0/source/lib/events/events_aio.c	2007-01-24 04:28:17 UTC (rev 20989)
@@ -204,10 +204,10 @@
 	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;
 }



More information about the samba-cvs mailing list