Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754228Ab0D1N4y (ORCPT ); Wed, 28 Apr 2010 09:56:54 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:60933 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753438Ab0D1N4w convert rfc822-to-8bit (ORCPT ); Wed, 28 Apr 2010 09:56:52 -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=hecs/ImhyGiG6xNaHMV4du2z15x4gAIePiGyR5fr/qGr+fcrXVR174dhqijqwrDPe7 w33zGNxsaZ0ATM+cAJqeF0GWlTBqzrPnRzlWqk2N+1nCVkVULAGueaBWSOxMl+U0sQLi fYeQnTpInl2PPbPPFVPysPFPjvQya+3owRbiw= MIME-Version: 1.0 In-Reply-To: <8526.1272447122@redhat.com> References: <1272430986-20436-1-git-send-email-xiaosuo@gmail.com> <8526.1272447122@redhat.com> From: Changli Gao Date: Wed, 28 Apr 2010 21:56:29 +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: 1032 Lines: 27 On Wed, Apr 28, 2010 at 5:32 PM, David Howells wrote: > Changli Gao wrote: > >> @@ -50,6 +48,7 @@ struct wait_bit_queue { >>  struct __wait_queue_head { >>       spinlock_t lock; >>       struct list_head task_list; >> +     struct list_head task_list_ex; > > It would be preferable it if you could avoid making struct __wait_queue_head > bigger.  That will increase the size of a lot of things. > I don't know how to do that, as maybe there are non-exclusive and exclusive wait queues in the same wait queue head. If we want to enqueue exclusive wait queues at the head of exclusive queues, we have to know where the head is, otherwise, we have to loop to find the head when enqueuing. -- 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/