Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbdLNEp2 (ORCPT ); Wed, 13 Dec 2017 23:45:28 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:43640 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288AbdLNEp0 (ORCPT ); Wed, 13 Dec 2017 23:45:26 -0500 X-Google-Smtp-Source: ACJfBosPl1c/paq2d1vEV/DfmyynCGIdWuR76ppU024RJpEMshtXPTB3dGEafv31XS1xUhPQmCcd4g== Date: Thu, 14 Dec 2017 10:15:23 +0530 From: Viresh Kumar To: Patrick Bellasi Cc: Juri Lelli , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Vincent Guittot , Dietmar Eggemann , Morten Rasmussen , Todd Kjos , Joel Fernandes Subject: Re: [PATCH v3 3/6] cpufreq: schedutil: update CFS util only if used Message-ID: <20171214044523.GV3322@vireshk-i7> References: <20171130114723.29210-1-patrick.bellasi@arm.com> <20171130114723.29210-4-patrick.bellasi@arm.com> <20171130132234.GC9903@localhost.localdomain> <20171130155728.GF31247@e110439-lin> <20171207051540.larfamrdflctn5pn@vireshk-mac-ubuntu> <20171207141927.GR31247@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171207141927.GR31247@e110439-lin> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1173 Lines: 28 On 07-12-17, 14:19, Patrick Bellasi wrote: > On 07-Dec 10:45, Viresh Kumar wrote: > > On 30-11-17, 15:57, Patrick Bellasi wrote: > > > Yes, that's a pretty trivial update with a confusing changelog. > > > > > > If we think it's worth to keep (and correct as well) I'll update the > > > commit message. > > > > We also need to update the commit log based on feedback from Vikram on > > V2. Which said that the utilization can't change around the lock here > > as we are within rq lock section, though max can change (maybe). So > > this patch only takes care of locking before reading max. I have more doubts on the max reason as well. Max isn't protected by the sg_policy lock of schedutil and it can change any time. So even after moving code around with this patch, we wouldn't fix any race and so I am not sure this patch helps at all. But, I have sent the same diff for another reason now in my series. Maybe I should have kept you as the author of that patch, but I forgot. Will do that if I need to send a V2. > Ok, right... will do. > > Thus you are still of the opinion to keep this patch in the series? Yes, but we need a good reason for that :) -- viresh