Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754044Ab3I3HF6 (ORCPT ); Mon, 30 Sep 2013 03:05:58 -0400 Received: from mail-ea0-f171.google.com ([209.85.215.171]:42102 "EHLO mail-ea0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751267Ab3I3HFz (ORCPT ); Mon, 30 Sep 2013 03:05:55 -0400 Date: Mon, 30 Sep 2013 09:05:51 +0200 From: Ingo Molnar To: Michel Lespinasse Cc: Linus Torvalds , Waiman Long , Ingo Molnar , Andrew Morton , Linux Kernel Mailing List , Rik van Riel , Peter Hurley , Davidlohr Bueso , Alex Shi , Tim Chen , Peter Zijlstra , Andrea Arcangeli , Matthew R Wilcox , Dave Hansen , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" Subject: Re: [PATCH] rwsem: reduce spinlock contention in wakeup code path Message-ID: <20130930070551.GC13584@gmail.com> References: <1380308424-31011-1-git-send-email-Waiman.Long@hp.com> <20130928074144.GA17773@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 803 Lines: 22 * Michel Lespinasse wrote: > That said, I am very scared of using rwlock_t here, and I would much > prefer we choose a fair lock (either spinlock or a new rwlock > implementation which guarantees not to starve any locker thread) Given how few users rwlock_t has today we could attempt to make it reader-writer fair, as long as the usecase of a hardirq or softirq context always getting nested read access on the same CPU is preserved. (but that can be done - if nothing else then with an explicit context check.) Thanks, Ingo -- 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/