From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752568AbZG0P0A (ORCPT ); Mon, 27 Jul 2009 11:26:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751855AbZG0PZ7 (ORCPT ); Mon, 27 Jul 2009 11:25:59 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:34144 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751811AbZG0PZ7 (ORCPT ); Mon, 27 Jul 2009 11:25:59 -0400 Date: Mon, 27 Jul 2009 11:25:58 -0400 From: Christoph Hellwig To: Thomas Gleixner Cc: LKML , Andrew Morton , Ingo Molnar , Peter Zijlstra , Christoph Hellwig Subject: Re: [Patch RFC 24/37] xfs: semaphore cleanup Message-ID: <20090727152558.GC31597@infradead.org> References: <20090726081459.455111897@linutronix.de> <20090726081556.395690256@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090726081556.395690256@linutronix.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 26, 2009 at 08:19:03AM -0000, Thomas Gleixner wrote: > bp->b_sema claims to be a mutex, but it is a semaphore with non > obvious semantics. Make it a real semaphore. It is a binary mutex in the classical CS sense, just not unlocked by the same thread as expected by the Linux mutexes..