Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757805Ab3HHMMC (ORCPT ); Thu, 8 Aug 2013 08:12:02 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:47856 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751627Ab3HHMMB (ORCPT ); Thu, 8 Aug 2013 08:12:01 -0400 Date: Thu, 8 Aug 2013 05:11:54 -0700 From: Christoph Hellwig To: Kent Overstreet Cc: Christoph Hellwig , Ben Hutchings , Thomas Gleixner , linux-kernel@vger.kernel.org, Uwe Kleine-K?nig Subject: Re: PREEMPT_RT vs bcache Message-ID: <20130808121154.GA5180@infradead.org> References: <1375907298.27403.35.camel@deadeye.wl.decadent.org.uk> <20130808072623.GA3509@infradead.org> <20130808074326.GA15409@kmo-pixel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130808074326.GA15409@kmo-pixel> User-Agent: Mutt/1.5.21 (2010-09-15) 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 Content-Length: 1187 Lines: 23 On Thu, Aug 08, 2013 at 12:43:26AM -0700, Kent Overstreet wrote: > I seem to recall from looking at the logs that you just removed them > because all the old users could be and were converted to something > saner, for what they were doing (using them as completions, I want to > say?) We explicitly converted them away so that we could kill it. This was a joint project with Thomas. > Bcache isn't using the rw sem as a completion though, it really is a > read/write lock that protects a specific data structure, and where > we're taking a read lock for the duration of write IOs - and since bios > are asynchronous, that's why we need the non_owner() bit. Part of this commit was to make the rw_semaphore behaviour similar to plain mutex, that is making sure there is exactly one owner and not different processes locking/unlocking it. This is useful for PI (that's why the rt folks care), lock debugging and kinds of other use cases. -- 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/