Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp232561pxu; Fri, 4 Dec 2020 01:45:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTC3oysZ2dSk6AZLsdNwjRndrs9KKRqyrQ0qvyrRqLZ2QsYSHhxZglNgaY07vBxy9s6ni6 X-Received: by 2002:a17:906:358e:: with SMTP id o14mr6084872ejb.526.1607075129053; Fri, 04 Dec 2020 01:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607075129; cv=none; d=google.com; s=arc-20160816; b=UkE6YXFDKUGsoNmfF9z1oV2KLefAsyOgf/hKxtG9bP13UONpk6LdnniQPqcfssb9Mp 2nRVtAK7yST3TFk+KcTCMk4wX8zfmQGjvIWUY4aLtEpbz94RqZWiE7POO+DSKtItbKt5 5+ExxJ3xO6SzaO3EqpkCciizW4xmIQZiOsyqPkOAJyDojzeOg3LTQ5G8ZzPRV2M7Q66s WKsXSlG8wDRS6Exwh1fQldTxO8W9u6hAaEjOvTPgK8PIsDOKgD0epmC5lngxfOkeROwD biPeDqM6K0wX8as3b9tiLXHR2dXlI6zqs50+wPFOr76EVubRI9+3kp9PYKlYVQh3cRss WDjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=uBov3W7RVh3TV7ryVIj+WitSimyDHHvmkY6NNiaTARw=; b=IkV7h6M5SDbokgu4DTzL7jbTu8YyIxYJoT9ODV89CsopX2Z3O9KDikjT4XRziDsg93 EYx/Z01qOBFqbzEQKdgY3TnMJVw4CgT/B66LyRakHIs0HYaSU7ey8PVvDS6k2AUfTs1h Y+5v5J3wreXcgEAxQpz8dHDvkvBIXNjxsHPH8Y1NuCA+xdNP1qx9oHjAvg8x78Aqo2Ve L5pKIN7kUl6AP2CFO7SFMzx5o/x12I0N7Wo7x5Ig0SWFqXEQK4tkIR/p6ZjFv1+phhQH p/vPOMaYvMRRe4tLc9fiGbEyUhhNz+6LCUIqbTmiL9FrfRR4HLDEGOkvTzvQnvCNs1wr 1NTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si1035768ejk.743.2020.12.04.01.45.06; Fri, 04 Dec 2020 01:45:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729738AbgLDJlG (ORCPT + 99 others); Fri, 4 Dec 2020 04:41:06 -0500 Received: from mx2.suse.de ([195.135.220.15]:33622 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729553AbgLDJlF (ORCPT ); Fri, 4 Dec 2020 04:41:05 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 25451AD2B; Fri, 4 Dec 2020 09:40:24 +0000 (UTC) Date: Fri, 4 Dec 2020 09:40:21 +0000 From: Mel Gorman To: Yunfeng Ye Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, linux-kernel@vger.kernel.org, Shiyuan Hu , Hewenliang Subject: Re: [PATCH 2/2] sched: Split the function show_schedstat() Message-ID: <20201204094021.GG3306@suse.de> References: <66f73a23-a273-7dff-4202-adc61c3152c8@huawei.com> <20201203094237.GD3306@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 09:22:34AM +0800, Yunfeng Ye wrote: > > > On 2020/12/3 17:42, Mel Gorman wrote: > > On Thu, Dec 03, 2020 at 02:47:14PM +0800, Yunfeng Ye wrote: > >> The schedstat include runqueue-specific stats and domain-specific stats, > >> so split it into two functions, show_rqstat() and show_domainstat(). > >> > >> No functional changes. > >> > >> Signed-off-by: Yunfeng Ye > > > > Why? > > > > I could understand if there was a follow-up patch that adjusted some > > subset or there was a difference in checking for schedstat_enabled, > > locking or inserting new schedstat information. This can happen in the > > general case when the end result is easier to review here it seems to be > > just moving code around. > > > The rqstat and domainstat is independent state information. so I think > split it into two individual function is clearer. > The comments and the names of the structures being accessesd is sufficient to make it clear. -- Mel Gorman SUSE Labs