From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christof Meerwald Subject: Re: [PATCH] epoll: Improved support for multi-threaded clients Date: Sat, 16 Jun 2012 20:47:07 +0200 Message-ID: <20120616184707.GA22656@edge.cmeerw.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Viro , Jason Baron , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Paul Holland , Davide Libenzi To: Paton Lewis Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, 11 Jun 2012 15:34:49 -0700, Paton Lewis wrote: > This patch introduces the new epoll_ctl command EPOLL_CTL_DISABLE, which > disables the associated epoll item and returns -EBUSY if the epoll item is not > currently in the epoll ready queue. This allows multiple threads to use a > mutex to determine when it is safe to delete an epoll item and its associated > resources. This allows epoll items to be deleted and closed efficiently and > without error. Do you assume that EPOLLONESHOT is being used for this to work or would you expect your patch to also address the case where EPOLLONESHOT is not used? Christof -- http://cmeerw.org sip:cmeerw at cmeerw.org mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org