Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4005612pxb; Tue, 10 Nov 2020 05:51:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkcaaH3ck83VTbVbs7jUo3PrDnzzDrwkJKBQe3ruSuj7woVTKuMLwBeYtZB7sXVABzWlnd X-Received: by 2002:a05:6402:a53:: with SMTP id bt19mr20768974edb.26.1605016293636; Tue, 10 Nov 2020 05:51:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605016293; cv=none; d=google.com; s=arc-20160816; b=N1XJhRLuIQfuSBocWJAT7/N74amNxoi1DDmKwcRqzAHXaeVg6v73+QQQ6iGRj8OdQH RXAdXVvKGCdSx0yCO90EdLTO1jnBy696we7xgiDRX+yQhYecZgH2Pk79zcPxz3hs2MMN pg7gNfzTFWA27p8bzUcaf7+vIk1JtuKVGV4t+YQIsTXFS3lmovcFH/lgaD8hoxDuIEaX Bg+YiCSON6KqzgaLc98z5L+DQFz4c40akuojX/MPym4zP4n4w5rkzmbm5gMGP0TPQHmn +NSzN5huwYWHp4UYWSviBVDqEM/MRfcBH85WsiLJ/41gfDuXBj/EW5hQQ1irGsEML69Q H1YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/akY3fmzxlOQpb/xXNZ2EfrP9sBdfmmjYx8WXHIVrzE=; b=RfDvYDg10MYBZ9IhybsirGcOWL1r4//FuJ3WeltjBhIC4v0xjGjVHL1V1jrE2T1+Zu OyEwaax8h9oRvmgQxFmSWySTTOtaE2tk2kLUpLFTsfVax5OheXQ/t8f1+6UBg8Fnptbw mutRNjhAs9807OuNVWzK0XXWg5oeQuRs1ZyruwBvm9kEPtVK8ghLl9YfDnsdXNkFpDRx 3DkfwkQKgyiRfYP7P4nsNDVpnL1QJd636O+VleQno60aAanuABnbdr/lTycMFa3TvwMA GU8DkDyNR1CjP3UFPTXjfmtNjCgTdJAPmIjwFZWUFILnFhHWEER6Hn4A1SK9Wy5XIx0O XVWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IVdx9gGk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si9107293ejb.615.2020.11.10.05.51.09; Tue, 10 Nov 2020 05:51:33 -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; dkim=pass header.i=@linaro.org header.s=google header.b=IVdx9gGk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730666AbgKJNta (ORCPT + 99 others); Tue, 10 Nov 2020 08:49:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729898AbgKJNt3 (ORCPT ); Tue, 10 Nov 2020 08:49:29 -0500 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8947C0613CF for ; Tue, 10 Nov 2020 05:49:28 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id y16so14731821ljk.1 for ; Tue, 10 Nov 2020 05:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/akY3fmzxlOQpb/xXNZ2EfrP9sBdfmmjYx8WXHIVrzE=; b=IVdx9gGkEwEsPe2TYccQ9CvLGJHuSy4OVQdNLkn+7t4D+hdmJnB8FF48GrGL2k+LwD pbDuWWQ7NAueMf4JNwGM0iPc7tiwTJaPlvQ++mfWGNY6ydIFlb+TdtPs/kY4FU04KzjQ Um86cqk0FExodWng8NYcLU6F/ZUbKdpUHlA86+IGsYeNb9LFO4PSOM9CEkBQwOkeIdDr rFPW/rQfnjXipOIAMopajI37B10slFGF7i7CBhzC4BNdU1kjsixxVQaDonnHnustcC8M jnW8Lx1dGSMCXtLwvxaOwC4Fqs0yKlLgHYGzzoaexPRsAT3hvK+8TKCP2PnKMuVTnOQt oPPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/akY3fmzxlOQpb/xXNZ2EfrP9sBdfmmjYx8WXHIVrzE=; b=IcihgHHoET6UsG38imrXVTNpJPd0Bj4qqrTx5KdG/Uwno3sTgbc83Ez15eB4W85e8E 7ceKjOpFLfX1diCazoPIJFdvfquOSZm1g/mblTZHPnAgN+lsyn7HAhMMaY3qTBX3YOeb ff2axb3njWKOl4trLTXLS51smGJe0h6OxxQtrjoA4TXjdBiJHnXw4ck5DSH11qcNYkT+ LkK70IFzxQNVQqvYyFdYRLtlen0+KhGrA/v5dXAA4Q9bhnUjlR303CRtWle5tEa1zERF KgWKD5C9wz/lLHZx/kE+XeKyfrvgsU0eQtYl2ZzAVZP2BdZuDSPZZ3P0A7DfLtX96Mql KqSw== X-Gm-Message-State: AOAM533A+s8tqMNMnvbu4taipEiQUQfaXNxeCNZS3M/9KwnGY0IEEzLv Ip0X8MNtW+0TBjIgks9GcIV80TCkOS397HcVBj1sLA== X-Received: by 2002:a2e:7803:: with SMTP id t3mr7800194ljc.156.1605016167130; Tue, 10 Nov 2020 05:49:27 -0800 (PST) MIME-Version: 1.0 References: <20201110134101.434928-1-arch0.zheng@gmail.com> In-Reply-To: <20201110134101.434928-1-arch0.zheng@gmail.com> From: Vincent Guittot Date: Tue, 10 Nov 2020 14:49:15 +0100 Message-ID: Subject: Re: [PATCH] sched/fair: Remove the redundant critical section To: Qi Zheng Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Nov 2020 at 14:41, Qi Zheng wrote: > > Now there is nothing in the critical section, so remove it. https://lkml.org/lkml/2020/10/30/689 > > Signed-off-by: Qi Zheng > --- > kernel/sched/fair.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 52cacfc62922..06c4f3430e95 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -5114,9 +5114,6 @@ static void do_sched_cfs_slack_timer(struct cfs_bandwidth *cfs_b) > return; > > distribute_cfs_runtime(cfs_b); > - > - raw_spin_lock_irqsave(&cfs_b->lock, flags); > - raw_spin_unlock_irqrestore(&cfs_b->lock, flags); > } > > /* > -- > 2.25.1 >