From patchwork Tue Oct 30 16:38:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 12590 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8B0F923EF7 for ; Tue, 30 Oct 2012 16:40:57 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 018E4A18FE2 for ; Tue, 30 Oct 2012 16:40:56 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so310956iag.11 for ; Tue, 30 Oct 2012 09:40:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-content-scanned:x-cbid:x-gm-message-state; bh=Wriw/3iS1z9GGcDCf7jQ6y3TzPDda0ZabGc4gJco+3s=; b=eFbs0iYU4qGdZKpCuDnHDw2jYnfnZNzlkHN6qTyHDY1bu6Hx6q+GZEKhvXUwuFu/k9 c4SCUJmNACyfEh2qD4zkH62lX1+vCdv/j14kXF2zjopSLOjO9gP6QD+W9fl5JJneGp+9 7YVwJ1Ej/0soAeAxTO2v18AbJf8ih0htD6emQ8x8qjMR2W1J9fLim6U6KvX10i3SKiJ7 rp2vLhWikoJtZR5YWzfMsFOns9E1yThwp2eKqt2wMAD1Z8FpBDwys4k9B+vOoLxPbSGn MnlBPg02oTlI6ZvWvIOft7RUbpQyYdH6oFnGkepmByM7Hm7gIMh4OOsQ/LXo8h51ODhv trkQ== Received: by 10.50.46.226 with SMTP id y2mr2001889igm.62.1351615256388; Tue, 30 Oct 2012 09:40:56 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp447007igt; Tue, 30 Oct 2012 09:40:56 -0700 (PDT) Received: by 10.50.42.231 with SMTP id r7mr2053190igl.60.1351615256152; Tue, 30 Oct 2012 09:40:56 -0700 (PDT) Received: from e1.ny.us.ibm.com (e1.ny.us.ibm.com. [32.97.182.141]) by mx.google.com with ESMTPS id u4si1201512igi.40.2012.10.30.09.40.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Oct 2012 09:40:56 -0700 (PDT) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.182.141 as permitted sender) client-ip=32.97.182.141; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.182.141 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e1.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Oct 2012 12:40:53 -0400 Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e1.ny.us.ibm.com (192.168.1.101) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Oct 2012 12:39:12 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id D6971C9004A for ; Tue, 30 Oct 2012 12:39:09 -0400 (EDT) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q9UGd8B8238552 for ; Tue, 30 Oct 2012 12:39:09 -0400 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q9UGd7Dw010357 for ; Tue, 30 Oct 2012 10:39:08 -0600 Received: from paulmck-ThinkPad-W500 (sig-9-65-77-17.mts.ibm.com [9.65.77.17]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q9UGd4QW010138; Tue, 30 Oct 2012 10:39:06 -0600 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 35806EBEDE; Tue, 30 Oct 2012 09:38:12 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@elte.hu, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@polymtl.ca, josh@joshtriplett.org, niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, Valdis.Kletnieks@vt.edu, dhowells@redhat.com, edumazet@google.com, darren@dvhart.com, fweisbec@gmail.com, sbw@mit.edu, patches@linaro.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 2/4] srcu: Export process_srcu() Date: Tue, 30 Oct 2012 09:38:08 -0700 Message-Id: <1351615090-24398-2-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1351615090-24398-1-git-send-email-paulmck@linux.vnet.ibm.com> References: <20121030163650.GA23518@linux.vnet.ibm.com> <1351615090-24398-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12103016-6078-0000-0000-0000114A2180 X-Gm-Message-State: ALoCoQl90LPD5TBdFxT0+PpuoidE4nomxW5p9gTA9qUDLWZV2nX8qtUrKDXpX3YoZTQq4A+b+HOL From: Lai Jiangshan Because process_srcu() will be used in DEFINE_SRCU(), which is a macro that could be expanded pretty much anywhere, it can no longer be static. Note that process_srcu() is still internal to srcu.h. Signed-off-by: Lai Jiangshan Signed-off-by: Paul E. McKenney --- include/linux/srcu.h | 2 ++ kernel/srcu.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/srcu.h b/include/linux/srcu.h index a55ddb1..5cce128 100644 --- a/include/linux/srcu.h +++ b/include/linux/srcu.h @@ -78,6 +78,8 @@ int init_srcu_struct(struct srcu_struct *sp); #endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */ +void process_srcu(struct work_struct *work); + /** * call_srcu() - Queue a callback for invocation after an SRCU grace period * @sp: srcu_struct in queue the callback diff --git a/kernel/srcu.c b/kernel/srcu.c index 0b99f27..b363b09 100644 --- a/kernel/srcu.c +++ b/kernel/srcu.c @@ -94,9 +94,6 @@ static inline void rcu_batch_move(struct rcu_batch *to, struct rcu_batch *from) } } -/* single-thread state-machine */ -static void process_srcu(struct work_struct *work); - static int init_srcu_struct_fields(struct srcu_struct *sp) { sp->completed = 0; @@ -639,7 +636,7 @@ static void srcu_reschedule(struct srcu_struct *sp) /* * This is the work-queue function that handles SRCU grace periods. */ -static void process_srcu(struct work_struct *work) +void process_srcu(struct work_struct *work) { struct srcu_struct *sp; @@ -650,3 +647,4 @@ static void process_srcu(struct work_struct *work) srcu_invoke_callbacks(sp); srcu_reschedule(sp); } +EXPORT_SYMBOL_GPL(process_srcu);