From patchwork Mon Mar 30 02:32:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 11464489 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 C946C14B4 for ; Mon, 30 Mar 2020 02:34:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8D05D2078B for ; Mon, 30 Mar 2020 02:34:05 +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="VI/qIKph" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D05D2078B 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 F115A6B007B; Sun, 29 Mar 2020 22:33:45 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id DD13D6B007D; Sun, 29 Mar 2020 22:33:45 -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 C49CD6B007E; Sun, 29 Mar 2020 22:33:45 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0113.hostedemail.com [216.40.44.113]) by kanga.kvack.org (Postfix) with ESMTP id AD24C6B007B for ; Sun, 29 Mar 2020 22:33:45 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A060D181AD0A1 for ; Mon, 30 Mar 2020 02:33:45 +0000 (UTC) X-FDA: 76650458010.18.cover50_5b01532723f2c X-Spam-Summary: 2,0,0,f3ee9f27f9c335d2,d41d8cd98f00b204,joel@joelfernandes.org,,RULES_HIT:41:355:379:541:800:960:965:966:973:988:989:1260:1311:1314:1345:1359:1437:1515:1534:1541:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:3871:4321:4385:4390:4395:4605:5007:6261:6653:6742:7514:7576:9592:10004:11026:11473:11658:11914:12043:12296:12297:12438:12517:12519:12555:12895:12986:13069:13311:13357:13894:14096:14181:14384:14394:14721:21080:21212:21444:21451:21627:30054,0,RBL:209.85.160.194:@joelfernandes.org:.lbl8.mailshell.net-66.100.201.201 62.2.0.100,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:23,LUA_SUMMARY:none X-HE-Tag: cover50_5b01532723f2c X-Filterd-Recvd-Size: 4720 Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Mon, 30 Mar 2020 02:33:45 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id g7so13882710qtj.13 for ; Sun, 29 Mar 2020 19:33:44 -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=b0k3soKURyDBh9v099L9R8zvO5sOH/jeMANg/8/7Rzk=; b=VI/qIKphu5cG5RcFKyvsw3jMUdxJoZtgoDsGaptYl1UYTimCaWzYL9uhYPDg//wONL j9zq93V+5DBwWreZj901i//u1yxPIc8rSnuWwcdNbo5eKT7SZpcjCpou5Xtv81k7qB4B po3VX9PxBTGTPCmy4N8gkdA6AFQrXHt7/UOg0= 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=b0k3soKURyDBh9v099L9R8zvO5sOH/jeMANg/8/7Rzk=; b=DvadWMg+u04tkl0Oynb5tEk6oa9m5l+LaBFz3xAJbPs4EyAtjmzTaKWCAvB0UjyfNf Ubr4/4+BSeK5XWb22UUmQFtBoWKV9XB7DF7MCH9KH49mY2U9tDdXSp2p/ArHsx5gHucJ rub1unyq5LQ0Y0N3/vT5ePOa+arER9jai+7JXbjf1OfaHRVec01XQ5dlWOPcPNX22uiq c6a5PEocCsLG5LJuZ4q/cdjeuqORCn/lhm3T2HktOwlEUvfW8rucLMzvuvaF9x+iewt3 EPj5tmBCRpdpHSxeB+8LDl3acTV/gaigN3LhmR/RKT5HEVu4nEPIo32YgqVgLDU1ousN HUJA== X-Gm-Message-State: ANhLgQ2iwabRF5gai3+WcA/ABQXaJ7/rzeJGj8LbM3pLNulcJXQbhWAU 8C6j2twf4scIJwVaapT40mimug== X-Google-Smtp-Source: ADFU+vtXYlMnNTXa8HH2h/iQhtZELpahx663+F4vLVBBsB/DDJ77YfhvA5Xkfej8EvFPpXiZ+guw3A== X-Received: by 2002:aed:24c2:: with SMTP id u2mr9893436qtc.269.1585535624468; Sun, 29 Mar 2020 19:33:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2020 19:33:44 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Uladzislau Rezki (Sony)" , Joel Fernandes , 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 Subject: [PATCH 13/18] rcu/tiny: Move kvfree_call_rcu() out of header Date: Sun, 29 Mar 2020 22:32:43 -0400 Message-Id: <20200330023248.164994-14-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: From: "Uladzislau Rezki (Sony)" Move inlined kvfree_call_rcu() function out of the header file. This step is a preparation for head-lees support. Reviewed-by: Joel Fernandes (Google) Signed-off-by: Uladzislau Rezki (Sony) Signed-off-by: Joel Fernandes (Google) --- include/linux/rcutiny.h | 6 +----- kernel/rcu/tiny.c | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index 5ba0bcb231976..19a780afa444a 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h @@ -34,11 +34,7 @@ static inline void synchronize_rcu_expedited(void) synchronize_rcu(); } -static inline void kvfree_call_rcu(struct rcu_head *head, rcu_callback_t func) -{ - call_rcu(head, func); -} - +void kvfree_call_rcu(struct rcu_head *head, rcu_callback_t func); void rcu_qs(void); static inline void rcu_softirq_qs(void) diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c index aa897c3f2e92c..508c82faa45c3 100644 --- a/kernel/rcu/tiny.c +++ b/kernel/rcu/tiny.c @@ -177,6 +177,12 @@ void call_rcu(struct rcu_head *head, rcu_callback_t func) } EXPORT_SYMBOL_GPL(call_rcu); +void kvfree_call_rcu(struct rcu_head *head, rcu_callback_t func) +{ + call_rcu(head, func); +} +EXPORT_SYMBOL_GPL(kvfree_call_rcu); + void __init rcu_init(void) { open_softirq(RCU_SOFTIRQ, rcu_process_callbacks);