Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761964Ab3DBVPb (ORCPT ); Tue, 2 Apr 2013 17:15:31 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:58034 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758910Ab3DBVP3 (ORCPT ); Tue, 2 Apr 2013 17:15:29 -0400 Date: Tue, 2 Apr 2013 21:15:27 +0000 From: Eric Wong To: Mathieu Desnoyers Cc: linux-kernel@vger.kernel.org, "Paul E. McKenney" , Lai Jiangshan Subject: Re: [PATCH] wfcqueue: add function for unsynchronized prepend Message-ID: <20130402211527.GA17261@dcvr.yhbt.net> References: <20130311213602.GB9829@Krystal> <20130329081016.GA15979@dcvr.yhbt.net> <20130402130541.GC11621@Krystal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130402130541.GC11621@Krystal> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 26 Mathieu Desnoyers wrote: > * Eric Wong (normalperson@yhbt.net) wrote: > > In some situations, it is necessary to prepend a node to a queue. > > For epoll, this is necessary for two rare conditions: > > > > * when the user triggers -EFAULT > > * when reinjecting elements from the ovflist (implemented as a stack) > > This approach makes sense. > > In terms of API naming, I wonder if "prepend" is the good counterpart > for "enqueue". Maybe "enqueue_first" or "enqueue_head" could be better > suited ? I'm not sure, I'll go with whatever name you decide is best :) Thanks for looking at my patch, I'll post an updated version once a name is decided. -- Eric "isuckatnamingthings" Wong -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/