Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751888AbaLRCLR (ORCPT ); Wed, 17 Dec 2014 21:11:17 -0500 Received: from mail-ob0-f182.google.com ([209.85.214.182]:33555 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751382AbaLRCLP (ORCPT ); Wed, 17 Dec 2014 21:11:15 -0500 MIME-Version: 1.0 In-Reply-To: <20141217234713.GT5310@linux.vnet.ibm.com> References: <1418771379-24369-1-git-send-email-dtor@chromium.org> <1418771379-24369-4-git-send-email-dtor@chromium.org> <20141217234713.GT5310@linux.vnet.ibm.com> Date: Thu, 18 Dec 2014 07:41:14 +0530 Message-ID: Subject: Re: [PATCH 3/4] PM / OPP: take RCU lock in dev_pm_opp_get_opp_count From: Viresh Kumar To: Paul McKenney Cc: Dmitry Torokhov , "Rafael J. Wysocki" , Thomas Petazzoni , Geert Uytterhoeven , Stefan Wahren , Paul Gortmaker , Nishanth Menon , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18 December 2014 at 05:17, Paul E. McKenney wrote: > Yep, they can be nested. Both rcu_read_lock() and rcu_read_unlock() > are quite fast, as are their friends, so there is almost no performance > penalty from nesting. So the decision normally turns on maintainability > and style. Thanks again for your kind advice :) -- 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/