This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC/PATCH] epoll: replace EPOLL_CTL_DISABLE withEPOLL_CTL_POKE
- From: Eric Wong <normalperson at yhbt dot net>
- To: Christof Meerwald <cmeerw at cmeerw dot org>
- Cc: Alexander Viro <viro at zeniv dot linux dot org dot uk>,Andrew Morton <akpm at linux-foundation dot org>,Jason Baron <jbaron at redhat dot com>, linux-fsdevel at vger dot kernel dot org,linux-kernel at vger dot kernel dot org, Paul Holland <pholland at adobe dot com>,Davide Libenzi <davidel at xmailserver dot org>,Michael Kerrisk <mtk dot manpages at gmail dot com>, libc-alpha at sourceware dot org,linux-api at vger dot kernel dot org, paulmck at linux dot vnet dot ibm dot com
- Date: Tue, 6 Nov 2012 21:58:54 +0000
- Subject: Re: [RFC/PATCH] epoll: replace EPOLL_CTL_DISABLE withEPOLL_CTL_POKE
- References: <1351210112-23238-1-git-send-email-palewis@adobe.com><20121102041312.GA15886@dcvr.yhbt.net><20121103011031.GA22452@edge.cmeerw.net>
Christof Meerwald <cmeerw@cmeerw.org> wrote:
> On Fri, 2 Nov 2012 04:13:12 +0000, Eric Wong wrote:
> [...]
> > EPOLL_CTL_POKE may be used to force an item into the epoll
> > ready list. Instead of disabling an item asynchronously
> > via EPOLL_CTL_DISABLE, this forces the threads calling
> > epoll_wait() to handle the item in its normal loop.
>
> That was my initial suggestion as well - see
> https://lkml.org/lkml/2012/6/19/358
Thanks, missed that the first time around. Perhaps TRIGGER is a
better name than POKE :x
I'm hoping Paton has a chance to look at my implementation and
comment on it.