Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1338373pxx; Fri, 30 Oct 2020 07:51:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYkUoKcsyDIwEfmnLv4Sdz0EIzT+3tZG4j18YYpXgXM5jw8bLqZqz/Igcpil/Rdz/ciLku X-Received: by 2002:a50:85c6:: with SMTP id q6mr2886200edh.126.1604069488969; Fri, 30 Oct 2020 07:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604069488; cv=none; d=google.com; s=arc-20160816; b=lUjp2gF1So0QXDX/tngILZVGnofxYDVJz1wbtoZnCJk3qpNFpFacGwCHao8ej1iWr/ JRDMQlI4vCs+2zJlJisf11bpjuX4pFi9iKQwYOEjKdVfqnPKJWP7IhZaSW5Wob+mfOQB hZyINxobCeNacWYzdBMDwAK/WthczMLSlMVKvEvbJDrarowFGDLCFkUxg7j88BhfdEeK ga67UBo25sBbd+9JOfntQNsxy5xC84ENN1gA1N3k5eVw4hbEFxCu+h907KDIccwSUaRT 6cVqkc1ESmxe1aOvaTsD1nfEpIM36I35ohwqf9Dg+YkItpVsW0JhxDE/QhaxM1id2qBB wGrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=vR3TFaORq8UB42QxLQXhJMqDJEgOMINgJTMsHq0D48A=; b=FltWuaBXCHtxsrQDHAnbn7990hX5EgAowdGAHrcVRXeFMRncj5ARGTKPyLwAFkwJTM Gj5gEssfzyF2IOfhEmZfDg/PXfQUDg2wUnupUPeE8TCjFH8p/p1Xv0fswZ121MAp4rHK rjY7OjIVo0T8j/gfTnRi1vWS/SCZSPVaT9aT5R1F2Si6nSZJCtQwrcjeZxNUo7ZMJdlt VGO04vZLZhyAr7MXRQoPSl9bI8l12L8OXrFbvpUVd7Y8n+Nwtbfts+a0jKHwCAJcEodr e0by++NqceMNyM75dDhNQQjIuKwY38C2ofathY/Pcw6OLJdHhd8gkE+oPNmL7O9Mn653 e5Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=DRDWsb8B; 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=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si3900970eds.22.2020.10.30.07.51.05; Fri, 30 Oct 2020 07:51:28 -0700 (PDT) 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=@163.com header.s=s110527 header.b=DRDWsb8B; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbgJ3Osu (ORCPT + 99 others); Fri, 30 Oct 2020 10:48:50 -0400 Received: from m12-17.163.com ([220.181.12.17]:43967 "EHLO m12-17.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbgJ3Ost (ORCPT ); Fri, 30 Oct 2020 10:48:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=vR3TF aORq8UB42QxLQXhJMqDJEgOMINgJTMsHq0D48A=; b=DRDWsb8BbosicWxE0W5va DTEnwEP66A5hBjoUL1FZge8toJluWt5QY3RzvMFg7avQmYBiEboTyEP+izJUsyB2 wQTkRTO/0bkxzENR10vBnHDkrpuGqcxxM0aDr0AvPoTszVvSsHMT5zZ/rW5YuUgF dG7wf8UKn+OrYJ776K2i14= Received: from localhost (unknown [101.86.209.82]) by smtp13 (Coremail) with SMTP id EcCowAAnLJQ9J5xfdQkwQw--.32426S2; Fri, 30 Oct 2020 22:46:21 +0800 (CST) Date: Fri, 30 Oct 2020 22:46:21 +0800 From: Hui Su To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, linux-kernel@vger.kernel.org, sh_def@163.com Subject: [PATCH] sched/fair: remove the spin_lock operations Message-ID: <20201030144621.GA96974@rlk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CM-TRANSID: EcCowAAnLJQ9J5xfdQkwQw--.32426S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw4fWFWkZF4fAFW8JrW7twb_yoW3GFX_C3 WruryfKr12vr1UurWxC395Kry0qa1IqF1I9Fn2qFW5JrySqryDArZ5CF93Cr9xXFs7Ja4D ArsxWFWDWryDKjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRR_Ma7UUUUU== X-Originating-IP: [101.86.209.82] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbiLh3NX1SIqqQV2AAAs+ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since 'ab93a4bc955b ("sched/fair: Remove distribute_running fromCFS bandwidth")',there is nothing to protect between raw_spin_lock_irqsave/store() in do_sched_cfs_slack_timer(). So remove it. Signed-off-by: Hui Su --- kernel/sched/fair.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 290f9e38378c..5ecbf5e63198 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5105,9 +5105,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.29.0