Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752981Ab3C0MDV (ORCPT ); Wed, 27 Mar 2013 08:03:21 -0400 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:40564 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766Ab3C0MDU (ORCPT ); Wed, 27 Mar 2013 08:03:20 -0400 Message-ID: <1364385776.5053.64.camel@laptop> Subject: Re: [PATCH -mm -next] ipc,sem: fix lockdep false positive From: Peter Zijlstra To: Michel Lespinasse Cc: Rik van Riel , Sasha Levin , torvalds@linux-foundation.org, davidlohr.bueso@hp.com, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, hhuang@redhat.com, jason.low2@hp.com, lwoodman@redhat.com, chegu_vinod@hp.com, Dave Jones , benisty.e@gmail.com, Ingo Molnar Date: Wed, 27 Mar 2013 13:02:56 +0100 In-Reply-To: References: <1363809337-29718-1-git-send-email-riel@surriel.com> <5150B1C2.8090607@oracle.com> <20130325163844.042a45ba@annuminas.surriel.com> <1364303965.5053.29.camel@laptop> <1364308023.5053.40.camel@laptop> <5151BC78.3030306@surriel.com> <1364373750.5053.54.camel@laptop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 731 Lines: 17 On Wed, 2013-03-27 at 04:22 -0700, Michel Lespinasse wrote: > >> Not without breaking your scheme above :) > > > > How would making sma->global_lock a mutex wreck anything? > > I don't remember the details (rik probably will), but rcu is also > already involved, so there is a non trivial chance that it would... Ah, that might be true, the callsite might not be able to deal with it, but the proposed global/local lock thing doesn't care -- which is how I read Rik's comment above. -- 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/