Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754631Ab3I3Av5 (ORCPT ); Sun, 29 Sep 2013 20:51:57 -0400 Received: from mail-ee0-f50.google.com ([74.125.83.50]:54215 "EHLO mail-ee0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753541Ab3I3Avz (ORCPT ); Sun, 29 Sep 2013 20:51:55 -0400 MIME-Version: 1.0 In-Reply-To: <1380501626.2174.17.camel@buesod1.americas.hpqcorp.net> References: <1380308424-31011-1-git-send-email-Waiman.Long@hp.com> <20130928074144.GA17773@gmail.com> <1380495986.2174.10.camel@buesod1.americas.hpqcorp.net> <1380501626.2174.17.camel@buesod1.americas.hpqcorp.net> Date: Sun, 29 Sep 2013 17:51:53 -0700 X-Google-Sender-Auth: D5v9gS17g1ORSsZkIn_C1QwpGvI Message-ID: Subject: Re: [PATCH] rwsem: reduce spinlock contention in wakeup code path From: Linus Torvalds To: Davidlohr Bueso Cc: Ingo Molnar , 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 , Michel Lespinasse , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 891 Lines: 22 On Sun, Sep 29, 2013 at 5:40 PM, Davidlohr Bueso wrote: > > Hmm, I'm getting the following at bootup: > > May be due to missing lock nesting notation Yes it is. And that reminds me of a problem I think we had with this code: we had a possible case of the preemption counter nesting too deeply. I forget the details, but it was something people worried about. That mm_take_all_locks() thing is really special, and I suspect that if we go down this way we should just do a single preempt-disable and then use the arch_write_lock() to avoid both the lockdep splat _and_ the preemption counter overflow. Linus -- 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/