From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752538AbcBJFQK (ORCPT ); Wed, 10 Feb 2016 00:16:10 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36272 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751667AbcBJFQI (ORCPT ); Wed, 10 Feb 2016 00:16:08 -0500 Date: Wed, 10 Feb 2016 10:46:05 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: juri.lelli@arm.com, linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, skannan@codeaurora.org, peterz@infradead.org, mturquette@baylibre.com, steve.muckle@linaro.org, vincent.guittot@linaro.org, morten.rasmussen@arm.com, dietmar.eggemann@arm.com, shilpa.bhat@linux.vnet.ibm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH V4 6/6] cpufreq: governor: Create and traverse list of policy_dbs to fix lockdep Message-ID: <20160210051605.GO22111@vireshk> References: <4ad189a1cd04b05fbfd659ec81b4793a1c7b0189.1454988295.git.viresh.kumar@linaro.org> <1643885.vh1AZTynbP@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1643885.vh1AZTynbP@vostro.rjw.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09-02-16, 21:23, Rafael J. Wysocki wrote: > > + count = dbs_data->usage_count--; > > This appears to be planting a bug. > > The way you wrote it the decrementation will take place after the assignment, so > count will contain the old value. Oh crap, what was I smoking :) -- viresh