Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3999816pxb; Tue, 10 Nov 2020 05:43:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPrK9RbRoGqlfYpsd/tW10pqhzbPxAH5JEW2CZaN5vKnMSkRJ2q12zwsDE3ck6elbVSXSP X-Received: by 2002:a17:906:d285:: with SMTP id ay5mr19727609ejb.84.1605015796878; Tue, 10 Nov 2020 05:43:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605015796; cv=none; d=google.com; s=arc-20160816; b=T7amrrIpEq4xLe2rwjhiPYNE+zbQu78ZkICFqbhS6DLYYVJwJdFEA8ICUSSeKYaooZ 9ISvSFTvzlo1tWZv+UamWkgp9oRf2KRof1EbcSKXu+qXJzOzXfCFO1KLto6iKpvW2iOT s9yb9846xcPDWG0HcaUmF/l0tgZDWLAHARcUBdSMO3M+r9yLX78L09WObfcQ9xE1C5IW +nHVPN6AzaeETEaVRPaPTve6d99Eyfcrulzi1DbY9R3x3NozUjkEA/pd+7NJMT7afn2X FPMC7+IFnKSm5z0R41QuODZMQyFziGE3s/LZTxdWQcXttusx00jYAymh7qLPKXTYxgGA t4PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NQfunjrgL76uBRcSvfp0hiZgyGWtLS38BjNvSb/rmHU=; b=RhKNMoZLWwuNfaiFTDF6HE1atRrj0NRYfI1O/VAq5M8AcsBKCIOnVDboBuPwBZIuG3 5WF4gn1fkL6nTzWgEwFdq3Om50r9c8uAxoXW2hMEfJ3Kyi8ujxuKOK0iHWnE0B4V8bqa m9dWg+yhb9MhW0YewLWr1nkq4zkWlTh4UBIbiIB3t5YyG8c8KIn/jRPkyeWd1R8e9LDB IHTG7/KTih9lnwC3EA/mGzF2YAPIhK9XJ6wU9d3eMG/Urnt0pDTSqrublRqaNchVZl3A 7kjsqKCkEcBJ/rWNX9Ym9soWKXvaPUddW0IKErDFcNUbrTXoPq45+otkhb4BgcLc07b+ oP8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ry+6q39E; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si9490809eds.511.2020.11.10.05.42.54; Tue, 10 Nov 2020 05:43:16 -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=@gmail.com header.s=20161025 header.b=ry+6q39E; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730099AbgKJNlS (ORCPT + 99 others); Tue, 10 Nov 2020 08:41:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730589AbgKJNlQ (ORCPT ); Tue, 10 Nov 2020 08:41:16 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76D6FC0613D4 for ; Tue, 10 Nov 2020 05:41:14 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id 10so11472962pfp.5 for ; Tue, 10 Nov 2020 05:41:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NQfunjrgL76uBRcSvfp0hiZgyGWtLS38BjNvSb/rmHU=; b=ry+6q39E+MCi+DidJnllI7SR60cy7IqdcUnNTx4B83AnECr38TLP4o6ihmggX49gMe maXNXqC1VIBmZ+RvRUv6lzYqTKwkgCLRZxIDs1erKA/PtgP6f+XVRPWXGHlzr+3y7D68 H4DJKcwXsaPpjbQO7miBlbYO/+atEnSQFYAcFtum6PpCZ5NKxdIiry31hudBM7zmaNGK s8U/FW0zO/uhACXBXIm3/dX/za4uQAv7dYFmkwCBj7n/jFpBSCW8+Kdv/KQ1gzGGMvGJ OUHoHcY5j2UouBfZN0Vf0EuvkfUpLKNP0VE9CIO3xzgTMYY46Nbt5CwMZuhtHA2Qj+jy 9pSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NQfunjrgL76uBRcSvfp0hiZgyGWtLS38BjNvSb/rmHU=; b=NpL42rQquIceBTHATyj1Z9fsnAOuaUPGodDKYppShkHF3s7dwXJVbWNm6dt2sI3Vxn bXU466OhLNaeW+RhVWGN7Hri6+4ZeLrfPXOY0aqUWjjlaEz6Nw8EyjndrK7n0JMEKI4d jVp9TBbdNHitZrjrBFCkStNEIspk0FTf/9W1ZDnB6iJYdRPE2atG5sgEiOS4VOJX+ZE/ a/P18krpiBMChUanwefvk8ihGKm+dn+MzQTJfX6sqSX0HdXfjlp/gtfxOdwSNordm4kA 5H07qN6cjdpm0qkNgT+WjDeebioWrYlTe5cthECt5X9nzLQJUAE8pCBEVLKRBP4Bv/uu xn4A== X-Gm-Message-State: AOAM5308MTkbQFf09g9t76PZzYDaMEyQOj2oYvNUrBcY9tkKgx0rVcTo e8DiVpTdaH6Ig0fQoKW0MVs= X-Received: by 2002:a17:90a:a08f:: with SMTP id r15mr3247342pjp.118.1605015674061; Tue, 10 Nov 2020 05:41:14 -0800 (PST) Received: from XiaoXinPro-13.hytera.com (ec2-3-112-75-61.ap-northeast-1.compute.amazonaws.com. [3.112.75.61]) by smtp.gmail.com with ESMTPSA id r2sm3169273pji.55.2020.11.10.05.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 05:41:13 -0800 (PST) From: Qi Zheng 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 Cc: linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH] sched/fair: Remove the redundant critical section Date: Tue, 10 Nov 2020 21:41:01 +0800 Message-Id: <20201110134101.434928-1-arch0.zheng@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now there is nothing in the critical section, so remove it. 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