From patchwork Mon Mar 30 02:32:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 11464495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DFF7913A4 for ; Mon, 30 Mar 2020 02:34:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AE2FC20780 for ; Mon, 30 Mar 2020 02:34:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="IoSt4QrC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE2FC20780 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D844A6B0080; Sun, 29 Mar 2020 22:33:48 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D105D6B0081; Sun, 29 Mar 2020 22:33:48 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BB29F6B0082; Sun, 29 Mar 2020 22:33:48 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0160.hostedemail.com [216.40.44.160]) by kanga.kvack.org (Postfix) with ESMTP id 9DBC86B0080 for ; Sun, 29 Mar 2020 22:33:48 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id A234D8248047 for ; Mon, 30 Mar 2020 02:33:48 +0000 (UTC) X-FDA: 76650458136.07.rest38_5b720bd49781d X-Spam-Summary: 2,0,0,8744cea5cee62ec2,d41d8cd98f00b204,joel@joelfernandes.org,,RULES_HIT:41:355:379:541:800:960:965:966:973:988:989:1260:1311:1314:1345:1359:1515:1534:1541:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3870:3876:4321:4385:4390:4395:5007:6261:6653:6742:9707:10004:11026:11658:11914:12043:12296:12297:12438:12517:12519:12555:12895:12986:13069:13311:13357:13894:14096:14384:14394:14721:21080:21444:21627:21740:30012:30054:30070,0,RBL:209.85.160.194:@joelfernandes.org:.lbl8.mailshell.net-62.2.0.100 66.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: rest38_5b720bd49781d X-Filterd-Recvd-Size: 4631 Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by imf29.hostedemail.com (Postfix) with ESMTP for ; Mon, 30 Mar 2020 02:33:48 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id e14so13956844qts.2 for ; Sun, 29 Mar 2020 19:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bOOZauNhsuF3feRi6dtskt8y9Qi7+H8gEQhQhgkWxqI=; b=IoSt4QrCLedpBvOuvuIWu3Cl4FfWPyXvbqqnuq/GaQ1HcU9khIkVEaqme/mPZxUhwv kD/yTyqYJNzHz7rPyQEXhmXtMbm69VHMETJQyAIAvXcj8l0UuBlX+/nqST46f4yYXTrf k0xWlyQk9oM+n+F+7at54OwU18Uv8Wr8uj0Vo= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=bOOZauNhsuF3feRi6dtskt8y9Qi7+H8gEQhQhgkWxqI=; b=caDCROn1tTZdk7Y51Pif0B4VmhwEZapIYLkxJs9VVYg+g6TV51h+qbyuX39lPi+WEt 6FAF+nl7QX1fytM/7jCTuNvMdbE7CZi0ZeETmkLIggDXwn4urzPpKyh9meKwW77THj5U a8fYDGYn38tSY6hFRBegqjk3iTwwq+y/l9CkoS0fd1ptmaUxghmsHA/C05yjywj1J+Dg 0b0LlF+eOQV+FIuKKELMGhuXgPJxtXs1Pl76ELkGsyoTiR37I5XdhM3+2iG3Rv+D2GtW am/ctJNOJzNFV9vmaiDwbhhsm4gLTbEZAqvp5R+X4WLpTZTUSt0vQ/Gtl+CAAXzE36IW UWJA== X-Gm-Message-State: ANhLgQ3Nh6ytpzZ7yHe1VIn9nOnyICfPFQcm57eKJYJMojZ/GULDR6et yGTbAFIj1ROCllVmvnMxRjMWmhP+vPQ= X-Google-Smtp-Source: ADFU+vvpUM4thXk+u3mpgUqeS17+XJRaBpxyDXS4TQ5h4ZRtyfMYG8HpGORF6osOZmFTIBNIXOApRA== X-Received: by 2002:ac8:2c73:: with SMTP id e48mr9339461qta.96.1585535627462; Sun, 29 Mar 2020 19:33:47 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id q15sm10030625qtj.83.2020.03.29.19.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2020 19:33:47 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , Andrew Morton , Ingo Molnar , Josh Triplett , Lai Jiangshan , linux-mm@kvack.org, Mathieu Desnoyers , "Paul E. McKenney" , "Rafael J. Wysocki" , rcu@vger.kernel.org, Steven Rostedt , "Uladzislau Rezki (Sony)" Subject: [PATCH 16/18] rcu/tree: Remove extra next variable in kfree worker function Date: Sun, 29 Mar 2020 22:32:46 -0400 Message-Id: <20200330023248.164994-17-joel@joelfernandes.org> X-Mailer: git-send-email 2.26.0.rc2.310.g2932bb562d-goog In-Reply-To: <20200330023248.164994-1-joel@joelfernandes.org> References: <20200330023248.164994-1-joel@joelfernandes.org> MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: No change in code, small refactor. Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/tree.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 204292378101b..56c9e102a901d 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -2889,8 +2889,7 @@ debug_rcu_bhead_unqueue(struct kvfree_rcu_bulk_data *bhead) static void kfree_rcu_work(struct work_struct *work) { unsigned long flags; - struct kvfree_rcu_bulk_data *bkhead, *bknext; - struct kvfree_rcu_bulk_data *bvhead, *bvnext; + struct kvfree_rcu_bulk_data *bkhead, *bvhead, *bnext; struct rcu_head *head, *next; struct kfree_rcu_cpu *krcp; struct kfree_rcu_cpu_work *krwp; @@ -2915,8 +2914,8 @@ static void kfree_rcu_work(struct work_struct *work) spin_unlock_irqrestore(&krcp->lock, flags); /* kmalloc()/kfree() channel. */ - for (; bkhead; bkhead = bknext) { - bknext = bkhead->next; + for (; bkhead; bkhead = bnext) { + bnext = bkhead->next; debug_rcu_bhead_unqueue(bkhead); @@ -2934,8 +2933,8 @@ static void kfree_rcu_work(struct work_struct *work) } /* vmalloc()/vfree() channel. */ - for (; bvhead; bvhead = bvnext) { - bvnext = bvhead->next; + for (; bvhead; bvhead = bnext) { + bnext = bvhead->next; debug_rcu_bhead_unqueue(bvhead);