Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030327AbVLVVw4 (ORCPT ); Thu, 22 Dec 2005 16:52:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030328AbVLVVw4 (ORCPT ); Thu, 22 Dec 2005 16:52:56 -0500 Received: from relais.videotron.ca ([24.201.245.36]:54867 "EHLO relais.videotron.ca") by vger.kernel.org with ESMTP id S1030327AbVLVVwz (ORCPT ); Thu, 22 Dec 2005 16:52:55 -0500 Date: Thu, 22 Dec 2005 16:52:54 -0500 (EST) From: Nicolas Pitre Subject: Re: [patch 00/10] mutex subsystem, -V5 In-reply-to: <20051222213902.GA32433@elte.hu> X-X-Sender: nico@localhost.localdomain To: Ingo Molnar Cc: Christoph Lameter , Linus Torvalds , lkml , Andrew Morton , Arjan van de Ven , Jes Sorensen , Zwane Mwaikambo , Oleg Nesterov , David Howells , Alan Cox , Benjamin LaHaise , Steven Rostedt , Christoph Hellwig , Andi Kleen , Russell King Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20051222153717.GA6090@elte.hu> <20051222213902.GA32433@elte.hu> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1088 Lines: 25 On Thu, 22 Dec 2005, Ingo Molnar wrote: > i definitely do not say that _everything_ should be generalized. That > would be micromanaging things. But i definitely think there's an > unhealthy amount of _under_ generalization in current Linux > architectures, and i dont want the mutex subsystem to fall into that > trap. BTW, I strongly believe the semaphore implementation could go with the same model the mutex model I hope is heading for. I.e., the only thing each architecture really have to implement is __sem_fast_down and __sem_fast _up, and incidentally they would have the exact same definition as your atomic_*_call_if_* functions (while a bit too restrictive for mutex semantics, they really are the minimum required for semaphores). Then all the current per architecture semaphore code could be consolidated. Nicolas - 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/