Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753555Ab0D1NsG (ORCPT ); Wed, 28 Apr 2010 09:48:06 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:37208 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753274Ab0D1NsC convert rfc822-to-8bit (ORCPT ); Wed, 28 Apr 2010 09:48:02 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=q4c2gAPoufklHKfxW1ewzsDq3jbjDfNcruvpZJdvFcldZSlLtrlxl6SESsCdkfSZ7S t6qcNakAaHLSvfXjECgkNRHSwIroWWvkbljNvlBUf3TnR2oVtGX13TqYyLvU6bwoX7Tj KQzStZeSBjapyZBn36B9gHayIkV3CF45U/q3s= MIME-Version: 1.0 In-Reply-To: <8566.1272447243@redhat.com> References: <1272430986-20436-1-git-send-email-xiaosuo@gmail.com> <8566.1272447243@redhat.com> From: Changli Gao Date: Wed, 28 Apr 2010 21:47:36 +0800 Message-ID: Subject: Re: [RFC] sched: implement the exclusive wait queue as a LIFO queue To: David Howells Cc: Ingo Molnar , Alexander Viro , Andrew Morton , "Eric W. Biederman" , Davide Libenzi , Roland Dreier , Stefan Richter , Peter Zijlstra , "David S. Miller" , Eric Dumazet , Christoph Lameter , Andreas Herrmann , Thomas Gleixner , Takashi Iwai , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 762 Lines: 19 On Wed, Apr 28, 2010 at 5:34 PM, David Howells wrote: > > Can you split the wait queue code and differentiate exclusive wait queues with > LIFO functionality from wait queues with FIFO functionality.  I can see why > your suggestion is desirable. > OK. I will use two lists: one for non-exclusive wait queues, and the other for exclusive wait queues, and I'll add new interfaces for LIFO functionality instead of changing the current interfaces. -- Regards, Changli Gao(xiaosuo@gmail.com) -- 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/