netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/9] netpoll: use DEFINE_STATIC_SRCU() to define netpoll_srcu
       [not found] <1363366257-4886-1-git-send-email-laijs@cn.fujitsu.com>
@ 2013-03-15 16:50 ` Lai Jiangshan
  2013-03-17 16:43   ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Lai Jiangshan @ 2013-03-15 16:50 UTC (permalink / raw)
  To: Paul E. McKenney, Andrew Morton, linux-kernel
  Cc: Lai Jiangshan, David S. Miller, Cong Wang, Neil Horman,
	Eric Dumazet, Jiri Pirko, netdev

DEFINE_STATIC_SRCU() defines srcu struct and do init at build time.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
 net/core/netpoll.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index fa32899..a3a17ae 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -47,7 +47,7 @@ static struct sk_buff_head skb_pool;
 
 static atomic_t trapped;
 
-static struct srcu_struct netpoll_srcu;
+DEFINE_STATIC_SRCU(netpoll_srcu);
 
 #define USEC_PER_POLL	50
 #define NETPOLL_RX_ENABLED  1
@@ -1212,7 +1212,6 @@ EXPORT_SYMBOL(netpoll_setup);
 static int __init netpoll_init(void)
 {
 	skb_queue_head_init(&skb_pool);
-	init_srcu_struct(&netpoll_srcu);
 	return 0;
 }
 core_initcall(netpoll_init);
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 4/9] netpoll: use DEFINE_STATIC_SRCU() to define netpoll_srcu
  2013-03-15 16:50 ` [PATCH 4/9] netpoll: use DEFINE_STATIC_SRCU() to define netpoll_srcu Lai Jiangshan
@ 2013-03-17 16:43   ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-03-17 16:43 UTC (permalink / raw)
  To: laijs; +Cc: paulmck, akpm, linux-kernel, amwang, nhorman, edumazet, jiri,
	netdev

From: Lai Jiangshan <laijs@cn.fujitsu.com>
Date: Sat, 16 Mar 2013 00:50:52 +0800

> DEFINE_STATIC_SRCU() defines srcu struct and do init at build time.
> 
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-17 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1363366257-4886-1-git-send-email-laijs@cn.fujitsu.com>
2013-03-15 16:50 ` [PATCH 4/9] netpoll: use DEFINE_STATIC_SRCU() to define netpoll_srcu Lai Jiangshan
2013-03-17 16:43   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).