Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1382860pxx; Fri, 30 Oct 2020 08:45:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnqY7IDDtTrgOIbKahKyVsgH35R/6V9UfrmDP4jkui8wLoWv55Kdgf6IJ8ClL+3+nZ7CVv X-Received: by 2002:a05:6402:1750:: with SMTP id v16mr2122612edx.241.1604072726379; Fri, 30 Oct 2020 08:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604072726; cv=none; d=google.com; s=arc-20160816; b=KPjslAn9kubjPGWb+S6JecfGCS9e/yFMfHdJLxaiffMlYydSkwwsxtd1KEOVBdx9UR mYJozaWUm4TrszqpzipoHC07BvDX+qIBUl6Uzt3Bsm+XDmZCwYpJzRfZn3GxCJjKgI0O +1RlJLKdRPmPgh5Kj0dQ21g09TxQLk2fc/dPXYcBvKcP4xhEykFcLY9rhqStJREXOEFG anCAyOXvmp33Er+bMredEOKJEyaakT8HoojEDHVmb0ys0kYz7hBNYBjbjGWOwV/T7MfV +AVCeMr6HqJrG4kfPpcKhrIcVr0t2I8tJJRZIRcG5fy+Mj28rsQYAx3diVOo3hgMNr/h lO5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fOKOxoysO3IM/w6PSj+eBBbx1khdElITpnmLIcXMry0=; b=C+Fpkg+3EcBKfglmDE++ZolSqmH4RiXk5MzZMZLwZxECf/fryu1YHP0VC7xv9/ozoY PXISo4NIZYM2glVB43B6M4Sa9K0Rw9ukJL3drVjgHJeGEsUCFQfehEdfW5q8TZ6dec6t 8bNbBjbofP2JLs0NM9VZ9/jgG1EOeZK6HNSwPAyr+rT74rBCu9mUevHLVBRGEzTyH2Vs e6Zxr/BySxPhD2NAgI4RFhAhxjHUwD/pYjbuc5JYVz5T1VKUkSoey5kXq3h4WiK/FuWi eKEycKkVEy4Jwe6FyLT7jUYg+DM0ThFNc2aFsHMrfBc3iehhUQtqg+pEWrzu0kvDm1vs RQZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FCh+ow15; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr3si5256227ejb.40.2020.10.30.08.44.37; Fri, 30 Oct 2020 08:45:26 -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=@redhat.com header.s=mimecast20190719 header.b=FCh+ow15; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbgJ3Pmd (ORCPT + 99 others); Fri, 30 Oct 2020 11:42:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:37285 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgJ3Pmd (ORCPT ); Fri, 30 Oct 2020 11:42:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604072552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fOKOxoysO3IM/w6PSj+eBBbx1khdElITpnmLIcXMry0=; b=FCh+ow15+c0KHnYpXPd5exiur64L8Gebjm1Neli3LLktQRvvAyw7eGlQqedJq1gI8TWT0+ yUTGNYzUbIdxoS9k/hPHCv1kXdH3nMmCteRFu1EAtG3fEAr9nw8GXHNcZk0c9aOrIc5RK8 LcVSee7U8XoUosDfdX2Y+FgfuUhGr7A= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-509-KCDb9ZJPNKGgyvAYSFNwsw-1; Fri, 30 Oct 2020 11:42:28 -0400 X-MC-Unique: KCDb9ZJPNKGgyvAYSFNwsw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 468AF8F62C1; Fri, 30 Oct 2020 15:42:26 +0000 (UTC) Received: from lorien.usersys.redhat.com (ovpn-113-38.phx2.redhat.com [10.3.113.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0807B672C0; Fri, 30 Oct 2020 15:42:17 +0000 (UTC) Date: Fri, 30 Oct 2020 11:42:16 -0400 From: Phil Auld To: Hui Su 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, mgorman@suse.de, bristot@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/fair: remove the spin_lock operations Message-ID: <20201030154216.GA142259@lorien.usersys.redhat.com> References: <20201030144621.GA96974@rlk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201030144621.GA96974@rlk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 30, 2020 at 10:46:21PM +0800 Hui Su wrote: > 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 > > Nice :) Reviewed-by: Phil Auld --