--- libev/ev_linuxaio.c 2019/06/25 05:17:50 1.27 +++ libev/ev_linuxaio.c 2019/06/25 06:36:59 1.28 @@ -336,11 +336,10 @@ linuxaio_parse_events (EV_A_ ring->io_events, tail); } - ECB_MEMORY_FENCE_RELAXED; + ECB_MEMORY_FENCE_RELEASE; /* as an extension to C, we hope that the volatile will make this atomic and once-only */ *(volatile unsigned *)&ring->head = tail; /* make sure kernel can see our new head value - probably not required */ - ECB_MEMORY_FENCE_RELEASE; return 1; }