Skip to contentSkip to conversation

RCU changes for v2.6.40

GIT PULL Ingo Molnar 1 participant 1 message May 19, 2011

Subsystems (20)
lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core-rcu-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git core-rcu-for-linus

Thanks,

Ingo

------------------>
Eric Dumazet (1):
rcu: optimize rcutiny

Gleb Natapov (1):
rcu: provide rcu_virt_note_context_switch() function.

Lai Jiangshan (40):
rcu: call __rcu_read_unlock() in exit_rcu for tree RCU
rcu: introduce kfree_rcu()
cgroup,rcu: convert call_rcu(free_css_set_rcu) to kfree_rcu() cgroup,rcu: convert call_rcu(free_cgroup_rcu) to kfree_rcu() cgroup,rcu: convert call_rcu(__free_css_id_cb) to kfree_rcu() net,rcu: convert call_rcu(tcf_common_free_rcu) to kfree_rcu() net,rcu: convert call_rcu(tcf_police_free_rcu) to kfree_rcu() net,rcu: convert call_rcu(in6_dev_finish_destroy_rcu) to kfree_rcu() net,rcu: convert call_rcu(inet6_ifa_finish_destroy_rcu) to kfree_rcu() net,rcu: convert call_rcu(listeners_free_rcu) to kfree_rcu() net,rcu: convert call_rcu(sctp_local_addr_free) to kfree_rcu() net,rcu: convert call_rcu(ha_rcu_free) to kfree_rcu() net,rcu: convert call_rcu(dn_dev_free_ifa_rcu) to kfree_rcu() net,act_police,rcu: remove rcu_barrier()
security,rcu: convert call_rcu(user_update_rcu_disposal) to kfree_rcu() net,rcu: convert call_rcu(fc_rport_free_rcu) to kfree_rcu() net,rcu: convert call_rcu(__leaf_info_free_rcu) to kfree_rcu() net,rcu: convert call_rcu(__gen_kill_estimator) to kfree_rcu() net,rcu: convert call_rcu(ip_mc_list_reclaim) to kfree_rcu() net,rcu: convert call_rcu(ip_sf_socklist_reclaim) to kfree_rcu() net,rcu: convert call_rcu(ip_mc_socklist_reclaim) to kfree_rcu() net,rcu: convert call_rcu(free_dm_hw_stat) to kfree_rcu() ixgbe,rcu: convert call_rcu(ring_free_rcu) to kfree_rcu() macvlan,rcu: convert call_rcu(macvlan_port_rcu_free) to kfree_rcu() net,rcu: convert call_rcu(ipv6_mc_socklist_reclaim) to kfree_rcu() net,rcu: convert call_rcu(rps_map_release) to kfree_rcu() net,rcu: convert call_rcu(xps_map_release) to kfree_rcu() net,rcu: convert call_rcu(xps_dev_maps_release) to kfree_rcu() security,rcu: convert call_rcu(sel_netif_free) to kfree_rcu() net,rcu: convert call_rcu(netlbl_unlhsh_free_addr4) to kfree_rcu() net,rcu: convert call_rcu(netlbl_unlhsh_free_addr6) to kfree_rcu() net,rcu: convert call_rcu(net_generic_release) to kfree_rcu() net,rcu: convert call_rcu(__nf_ct_ext_free_rcu) to kfree_rcu() perf,rcu: convert call_rcu(free_ctx) to kfree_rcu() perf,rcu: convert call_rcu(swevent_hlist_release_rcu) to kfree_rcu() net,rcu: convert call_rcu(phonet_device_rcu_free) to kfree_rcu() net,rcu: convert call_rcu(wq_free_rcu) to kfree_rcu() net/mac80211,rcu: convert call_rcu(work_free_rcu) to kfree_rcu() net,rcu: convert call_rcu(xt_osf_finger_free_rcu) to kfree_rcu() net,rcu: convert call_rcu(kfree_tid_tx) to kfree_rcu()

Mathieu Desnoyers (1):
rcu: Enable DEBUG_OBJECTS_RCU_HEAD from !PREEMPT

Paul E. McKenney (35):
rcu: Remove conditional compilation for RCU CPU stall warnings
rcu: Decrease memory-barrier usage based on semi-formal proof
rcu: merge TREE_PREEPT_RCU blocked_tasks[] lists
rcu: move TREE_RCU from softirq to kthread
rcu: priority boosting for TREE_PREEMPT_RCU
rcu: Force per-rcu_node kthreads off of the outgoing CPU
rcu: put per-CPU kthread at non-RT priority during CPU hotplug operations
rcu: avoid hammering sched with yet another bound RT kthread
rcu: eliminate unused boosting statistics
rcu: Add boosting to TREE_PREEMPT_RCU tracing
rcu: Update RCU's trace.txt documentation for new format
rcu: add callback-queue information to rcudata output
rcu: add tracing for RCU's kthread run states.
rcu: make rcutorture version numbers available through debugfs
rcu: update tracing documentation for new rcutorture and rcuboost
rcu: fix tracing bug thinko on boost-balk attribution
rcu: add grace-period age and more kthread state to tracing
rcu: Add forward-progress diagnostic for per-CPU kthreads
rcu: add DEBUG_OBJECTS_RCU_HEAD check for alignment
rcu: mark rcutorture boosting callback as being on-stack
rcu: Use WARN_ON_ONCE for DEBUG_OBJECTS_RCU_HEAD warnings
rcu: Switch to this_cpu() primitives
rcu: code cleanups in TINY_RCU priority boosting.
rcu: remove useless ->boosted_this_gp field
rcu: Converge TINY_RCU expedited and normal boosting
rcu: fix spelling
rcu: further lower priority in rcu_yield()
rcu: prevent call_rcu() from diving into rcu core if irqs disabled
rcu: get rid of signed overflow in check_cpu_stall()
rcu: permit rcu_read_unlock() to be called while holding runqueue locks batman,rcu: convert call_rcu(gw_node_free_rcu) to kfree_rcu batman,rcu: convert call_rcu(neigh_node_free_rcu) to kfree() batman,rcu: convert call_rcu(softif_neigh_free_rcu) to kfree_rcu net,rcu: convert call_rcu(prl_entry_destroy_rcu) to kfree Revert "rcu: Decrease memory-barrier usage based on semi-formal proof"

 Documentation/RCU/00-INDEX          |    2 +-
 Documentation/RCU/stallwarn.txt     |   23 +-
 Documentation/RCU/trace.txt         |  278 ++++++++++++++---
 Documentation/filesystems/proc.txt  |    1 -
 drivers/net/ixgbe/ixgbe_main.c      |    7 +-
 drivers/net/macvlan.c               |   10 +-
 include/linux/interrupt.h           |    1 -
 include/linux/rcupdate.h            |   70 +++++-
 include/linux/rcutiny.h             |    8 +
 include/linux/rcutree.h             |   13 +
 include/net/sctp/sctp.h             |    1 -
 include/trace/events/irq.h          |    3 +-
 init/Kconfig                        |    2 +-
 kernel/cgroup.c                     |   27 +--
 kernel/perf_event.c                 |   20 +--
 kernel/rcupdate.c                   |   32 ++-
 kernel/rcutiny.c                    |   45 ++--
 kernel/rcutiny_plugin.h             |  203 ++++++-------
 kernel/rcutorture.c                 |   26 +-
 kernel/rcutree.c                    |  526 +++++++++++++++++++++++++++++---
 kernel/rcutree.h                    |  104 +++++--
 kernel/rcutree_plugin.h             |  568 +++++++++++++++++++++++++++--------
 kernel/rcutree_trace.c              |  180 ++++++++++-
 kernel/softirq.c                    |    2 +-
 lib/Kconfig.debug                   |   32 +--
 net/batman-adv/gateway_client.c     |   10 +-
 net/batman-adv/originator.c         |   10 +-
 net/batman-adv/soft-interface.c     |   10 +-
 net/core/dev_addr_lists.c           |   12 +-
 net/core/drop_monitor.c             |   12 +-
 net/core/gen_estimator.c            |    9 +-
 net/core/net-sysfs.c                |   34 +--
 net/core/net_namespace.c            |   10 +-
 net/decnet/dn_dev.c                 |    7 +-
 net/ipv4/fib_semantics.c            |   12 +-
 net/ipv4/fib_trie.c                 |    7 +-
 net/ipv4/igmp.c                     |   32 +--
 net/ipv6/addrconf.c                 |   16 +-
 net/ipv6/mcast.c                    |    8 +-
 net/ipv6/sit.c                      |    7 +-
 net/mac80211/agg-tx.c               |   14 +-
 net/mac80211/work.c                 |   10 +-
 net/netfilter/nf_conntrack_extend.c |    8 +-
 net/netfilter/xt_osf.c              |   11 +-
 net/netlabel/netlabel_unlabeled.c   |   42 +---
 net/netlink/af_netlink.c            |    8 +-
 net/phonet/pn_dev.c                 |   10 +-
 net/sched/act_api.c                 |    7 +-
 net/sched/act_police.c              |    8 +-
 net/sctp/bind_addr.c                |    2 +-
 net/sctp/ipv6.c                     |    2 +-
 net/sctp/protocol.c                 |    9 +-
 net/socket.c                        |   11 +-
 security/keys/user_defined.c        |   16 +-
 security/selinux/netif.c            |   18 +-
 tools/perf/util/trace-event-parse.c |    1 -
 56 files changed, 1724 insertions(+), 833 deletions(-)
Documentation/RCU/00-INDEX +1 -1
index 71b6f50..1d7a885 100644
@@ -21,7 +21,7 @@ rcu.txt
 RTFP.txt
 	- List of RCU papers (bibliography) going back to 1980.
 stallwarn.txt
-	- RCU CPU stall warnings (CONFIG_RCU_CPU_STALL_DETECTOR)
+	- RCU CPU stall warnings (module parameter rcu_cpu_stall_suppress)
 torture.txt
 	- RCU Torture Test Operation (CONFIG_RCU_TORTURE_TEST)
 trace.txt
Documentation/RCU/stallwarn.txt +13 -10
index 862c08e..4e95920 100644
@@ -1,22 +1,25 @@
 Using RCU's CPU Stall Detector
 
-The CONFIG_RCU_CPU_STALL_DETECTOR kernel config parameter enables
-RCU's CPU stall detector, which detects conditions that unduly delay
-RCU grace periods.  The stall detector's idea of what constitutes
-"unduly delayed" is controlled by a set of C preprocessor macros:
+The rcu_cpu_stall_suppress module parameter enables RCU's CPU stall
+detector, which detects conditions that unduly delay RCU grace periods.
+This module parameter enables CPU stall detection by default, but
+may be overridden via boot-time parameter or at runtime via sysfs.
+The stall detector's idea of what constitutes "unduly delayed" is
+controlled by a set of kernel configuration variables and cpp macros:
 
-RCU_SECONDS_TILL_STALL_CHECK
+CONFIG_RCU_CPU_STALL_TIMEOUT
 
-	This macro defines the period of time that RCU will wait from
-	the beginning of a grace period until it issues an RCU CPU
-	stall warning.	This time period is normally ten seconds.
+	This kernel configuration parameter defines the period of time
+	that RCU will wait from the beginning of a grace period until it
+	issues an RCU CPU stall warning.  This time period is normally
+	ten seconds.
 
 RCU_SECONDS_TILL_STALL_RECHECK
 
 	This macro defines the period of time that RCU will wait after
 	issuing a stall warning until it issues another stall warning
-	for the same stall.  This time period is normally set to thirty
-	seconds.
+	for the same stall.  This time period is normally set to three
+	times the check interval plus thirty seconds.
 
 RCU_STALL_RAT_DELAY
 
Documentation/RCU/trace.txt +231 -47

344 lines not on this page · raw message

Documentation/filesystems/proc.txt +0 -1
index b0b814d..60740e8 100644
@@ -836,7 +836,6 @@ Provides counts of softirq handlers serviced since boot time, for each cpu.
  TASKLET:          0          0          0        290
    SCHED:      27035      26983      26971      26746
  HRTIMER:          0          0          0          0
-     RCU:       1678       1769       2178       2250
 
 
 1.3 IDE devices in /proc/ide
drivers/net/ixgbe/ixgbe_main.c +1 -6
index 6f8adc7..e145f2c 100644
@@ -5100,11 +5100,6 @@ err_set_interrupt:
 	return err;
 }
 
-static void ring_free_rcu(struct rcu_head *head)
-{
-	kfree(container_of(head, struct ixgbe_ring, rcu));
-}
-
 /**
  * ixgbe_clear_interrupt_scheme - Clear the current interrupt scheme settings
  * @adapter: board private structure to clear interrupt scheme on
@@ -5126,7 +5121,7 @@ void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter)
 		/* ixgbe_get_stats64() might access this ring, we must wait
 		 * a grace period before freeing it.
 		 */
-		call_rcu(&ring->rcu, ring_free_rcu);
+		kfree_rcu(ring, rcu);
 		adapter->rx_ring[i] = NULL;
 	}
 
drivers/net/macvlan.c +1 -9
index 78e34e9..d8e4e69 100644
@@ -603,21 +603,13 @@ static int macvlan_port_create(struct net_device *dev)
 	return err;
 }
 
-static void macvlan_port_rcu_free(struct rcu_head *head)
-{
-	struct macvlan_port *port;
-
-	port = container_of(head, struct macvlan_port, rcu);
-	kfree(port);
-}
-
 static void macvlan_port_destroy(struct net_device *dev)
 {
 	struct macvlan_port *port = macvlan_port_get(dev);
 
 	dev->priv_flags &= ~IFF_MACVLAN_PORT;
 	netdev_rx_handler_unregister(dev);
-	call_rcu(&port->rcu, macvlan_port_rcu_free);
+	kfree_rcu(port, rcu);
 }
 
 static int macvlan_validate(struct nlattr *tb[], struct nlattr *data[])
include/linux/interrupt.h +0 -1
index bea0ac7..6c12989 100644
@@ -414,7 +414,6 @@ enum
 	TASKLET_SOFTIRQ,
 	SCHED_SOFTIRQ,
 	HRTIMER_SOFTIRQ,
-	RCU_SOFTIRQ,	/* Preferable RCU should always be the last softirq */
 
 	NR_SOFTIRQS
 };
include/linux/rcupdate.h +69 -1

92 lines not on this page · raw message

include/linux/rcutiny.h +8 -0
index 30ebd7c..52b3e02 100644
@@ -100,6 +100,14 @@ static inline void rcu_note_context_switch(int cpu)
 }
 
 /*
+ * Take advantage of the fact that there is only one CPU, which
+ * allows us to ignore virtualization-based context switches.
+ */
+static inline void rcu_virt_note_context_switch(int cpu)
+{
+}
+
+/*
  * Return the number of grace periods.
  */
 static inline long rcu_batches_completed(void)
include/linux/rcutree.h +13 -0
index 3a93348..e65d066 100644
@@ -35,6 +35,16 @@ extern void rcu_note_context_switch(int cpu);
 extern int rcu_needs_cpu(int cpu);
 extern void rcu_cpu_stall_reset(void);
 
+/*
+ * Note a virtualization-based context switch.  This is simply a
+ * wrapper around rcu_note_context_switch(), which allows TINY_RCU
+ * to save a few bytes.
+ */
+static inline void rcu_virt_note_context_switch(int cpu)
+{
+	rcu_note_context_switch(cpu);
+}
+
 #ifdef CONFIG_TREE_PREEMPT_RCU
 
 extern void exit_rcu(void);
@@ -58,9 +68,12 @@ static inline void synchronize_rcu_bh_expedited(void)
 
 extern void rcu_barrier(void);
 
+extern unsigned long rcutorture_testseq;
+extern unsigned long rcutorture_vernum;
 extern long rcu_batches_completed(void);
 extern long rcu_batches_completed_bh(void);
 extern long rcu_batches_completed_sched(void);
+
 extern void rcu_force_quiescent_state(void);
 extern void rcu_bh_force_quiescent_state(void);
 extern void rcu_sched_force_quiescent_state(void);
include/net/sctp/sctp.h +0 -1
index 505845d..01e094c 100644
@@ -115,7 +115,6 @@
  * sctp/protocol.c
  */
 extern struct sock *sctp_get_ctl_sock(void);
-extern void sctp_local_addr_free(struct rcu_head *head);
 extern int sctp_copy_local_addr_list(struct sctp_bind_addr *,
 				     sctp_scope_t, gfp_t gfp,
 				     int flags);
include/trace/events/irq.h +1 -2
index 1c09820..ae045ca 100644
@@ -20,8 +20,7 @@ struct softirq_action;
 			 softirq_name(BLOCK_IOPOLL),	\
 			 softirq_name(TASKLET),		\
 			 softirq_name(SCHED),		\
-			 softirq_name(HRTIMER),		\
-			 softirq_name(RCU))
+			 softirq_name(HRTIMER))
 
 /**
  * irq_handler_entry - called immediately before the irq action handler
init/Kconfig +1 -1
index d886b1e..2d964fa 100644
@@ -485,7 +485,7 @@ config TREE_RCU_TRACE
 
 config RCU_BOOST
 	bool "Enable RCU priority boosting"
-	depends on RT_MUTEXES && TINY_PREEMPT_RCU
+	depends on RT_MUTEXES && PREEMPT_RCU
 	default n
 	help
 	  This option boosts the priority of preempted RCU readers that
kernel/cgroup.c +3 -24
index 25c7eb5..909a355 100644
@@ -326,12 +326,6 @@ static struct hlist_head *css_set_hash(struct cgroup_subsys_state *css[])
 	return &css_set_table[index];
 }
 
-static void free_css_set_rcu(struct rcu_head *obj)
-{
-	struct css_set *cg = container_of(obj, struct css_set, rcu_head);
-	kfree(cg);
-}
-
 /* We don't maintain the lists running through each css_set to its
  * task until after the first call to cgroup_iter_start(). This
  * reduces the fork()/exit() overhead for people who have cgroups
@@ -375,7 +369,7 @@ static void __put_css_set(struct css_set *cg, int taskexit)
 	}
 
 	write_unlock(&css_set_lock);
-	call_rcu(&cg->rcu_head, free_css_set_rcu);
+	kfree_rcu(cg, rcu_head);
 }
 
 /*
@@ -812,13 +806,6 @@ static int cgroup_call_pre_destroy(struct cgroup *cgrp)
 	return ret;
 }
 
-static void free_cgroup_rcu(struct rcu_head *obj)
-{
-	struct cgroup *cgrp = container_of(obj, struct cgroup, rcu_head);
-
-	kfree(cgrp);
-}
-
 static void cgroup_diput(struct dentry *dentry, struct inode *inode)
 {
 	/* is dentry a directory ? if so, kfree() associated cgroup */
@@ -856,7 +843,7 @@ static void cgroup_diput(struct dentry *dentry, struct inode *inode)
 		 */
 		BUG_ON(!list_empty(&cgrp->pidlists));
 
-		call_rcu(&cgrp->rcu_head, free_cgroup_rcu);
+		kfree_rcu(cgrp, rcu_head);
 	}
 	iput(inode);
 }
@@ -4623,14 +4610,6 @@ bool css_is_ancestor(struct cgroup_subsys_state *child,
 	return ret;
 }
 
-static void __free_css_id_cb(struct rcu_head *head)
-{
-	struct css_id *id;
-
-	id = container_of(head, struct css_id, rcu_head);
-	kfree(id);
-}
-
 void free_css_id(struct cgroup_subsys *ss, struct cgroup_subsys_state *css)
 {
 	struct css_id *id = css->id;
@@ -4645,7 +4624,7 @@ void free_css_id(struct cgroup_subsys *ss, struct cgroup_subsys_state *css)
 	spin_lock(&ss->id_lock);
 	idr_remove(&ss->idr, id->id);
 	spin_unlock(&ss->id_lock);
-	call_rcu(&id->rcu_head, __free_css_id_cb);
+	kfree_rcu(id, rcu_head);
 }
 EXPORT_SYMBOL_GPL(free_css_id);
 
kernel/perf_event.c +2 -18
index 8e81a98..b90d660 100644
@@ -586,14 +586,6 @@ static void get_ctx(struct perf_event_context *ctx)
 	WARN_ON(!atomic_inc_not_zero(&ctx->refcount));
 }
 
-static void free_ctx(struct rcu_head *head)
-{
-	struct perf_event_context *ctx;
-
-	ctx = container_of(head, struct perf_event_context, rcu_head);
-	kfree(ctx);
-}
-
 static void put_ctx(struct perf_event_context *ctx)
 {
 	if (atomic_dec_and_test(&ctx->refcount)) {
@@ -601,7 +593,7 @@ static void put_ctx(struct perf_event_context *ctx)
 			put_ctx(ctx->parent_ctx);
 		if (ctx->task)
 			put_task_struct(ctx->task);
-		call_rcu(&ctx->rcu_head, free_ctx);
+		kfree_rcu(ctx, rcu_head);
 	}
 }
 
@@ -5331,14 +5323,6 @@ swevent_hlist_deref(struct swevent_htable *swhash)
 					 lockdep_is_held(&swhash->hlist_mutex));
 }
 
-static void swevent_hlist_release_rcu(struct rcu_head *rcu_head)
-{
-	struct swevent_hlist *hlist;
-
-	hlist = container_of(rcu_head, struct swevent_hlist, rcu_head);
-	kfree(hlist);
-}
-
 static void swevent_hlist_release(struct swevent_htable *swhash)
 {
 	struct swevent_hlist *hlist = swevent_hlist_deref(swhash);
@@ -5347,7 +5331,7 @@ static void swevent_hlist_release(struct swevent_htable *swhash)
 		return;
 
 	rcu_assign_pointer(swhash->swevent_hlist, NULL);
-	call_rcu(&hlist->rcu_head, swevent_hlist_release_rcu);
+	kfree_rcu(hlist, rcu_head);
 }
 
 static void swevent_hlist_put_cpu(struct perf_event *event, int cpu)
kernel/rcupdate.c +24 -8
index f3240e9..7784bd2 100644
@@ -142,10 +142,17 @@ static int rcuhead_fixup_init(void *addr, enum debug_obj_state state)
 		 * Ensure that queued callbacks are all executed.
 		 * If we detect that we are nested in a RCU read-side critical
 		 * section, we should simply fail, otherwise we would deadlock.
+		 * In !PREEMPT configurations, there is no way to tell if we are
+		 * in a RCU read-side critical section or not, so we never
+		 * attempt any fixup and just print a warning.
 		 */
+#ifndef CONFIG_PREEMPT
+		WARN_ON_ONCE(1);
+		return 0;
+#endif
 		if (rcu_preempt_depth() != 0 || preempt_count() != 0 ||
 		    irqs_disabled()) {
-			WARN_ON(1);
+			WARN_ON_ONCE(1);
 			return 0;
 		}
 		rcu_barrier();
@@ -184,10 +191,17 @@ static int rcuhead_fixup_activate(void *addr, enum debug_obj_state state)
 		 * Ensure that queued callbacks are all executed.
 		 * If we detect that we are nested in a RCU read-side critical
 		 * section, we should simply fail, otherwise we would deadlock.
+		 * In !PREEMPT configurations, there is no way to tell if we are
+		 * in a RCU read-side critical section or not, so we never
+		 * attempt any fixup and just print a warning.
 		 */
+#ifndef CONFIG_PREEMPT
+		WARN_ON_ONCE(1);
+		return 0;
+#endif
 		if (rcu_preempt_depth() != 0 || preempt_count() != 0 ||
 		    irqs_disabled()) {
-			WARN_ON(1);
+			WARN_ON_ONCE(1);
 			return 0;
 		}
 		rcu_barrier();
@@ -214,15 +228,17 @@ static int rcuhead_fixup_free(void *addr, enum debug_obj_state state)
 		 * Ensure that queued callbacks are all executed.
 		 * If we detect that we are nested in a RCU read-side critical
 		 * section, we should simply fail, otherwise we would deadlock.
-		 * Note that the machinery to reliably determine whether
-		 * or not we are in an RCU read-side critical section
-		 * exists only in the preemptible RCU implementations
-		 * (TINY_PREEMPT_RCU and TREE_PREEMPT_RCU), which is why
-		 * DEBUG_OBJECTS_RCU_HEAD is disallowed if !PREEMPT.
+		 * In !PREEMPT configurations, there is no way to tell if we are
+		 * in a RCU read-side critical section or not, so we never
+		 * attempt any fixup and just print a warning.
 		 */
+#ifndef CONFIG_PREEMPT
+		WARN_ON_ONCE(1);
+		return 0;
+#endif
 		if (rcu_preempt_depth() != 0 || preempt_count() != 0 ||
 		    irqs_disabled()) {
-			WARN_ON(1);
+			WARN_ON_ONCE(1);
 			return 0;
 		}
 		rcu_barrier();
kernel/rcutiny.c +22 -23

103 lines not on this page · raw message

kernel/rcutiny_plugin.h +95 -108

312 lines not on this page · raw message

kernel/rcutorture.c +11 -15
index c224da4..2e138db 100644
@@ -131,7 +131,7 @@ struct rcu_torture {
 
 static LIST_HEAD(rcu_torture_freelist);
 static struct rcu_torture __rcu *rcu_torture_current;
-static long rcu_torture_current_version;
+static unsigned long rcu_torture_current_version;
 static struct rcu_torture rcu_tortures[10 * RCU_TORTURE_PIPE_LEN];
 static DEFINE_SPINLOCK(rcu_torture_lock);
 static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count) =
@@ -146,8 +146,6 @@ static atomic_t n_rcu_torture_mberror;
 static atomic_t n_rcu_torture_error;
 static long n_rcu_torture_boost_ktrerror;
 static long n_rcu_torture_boost_rterror;
-static long n_rcu_torture_boost_allocerror;
-static long n_rcu_torture_boost_afferror;
 static long n_rcu_torture_boost_failure;
 static long n_rcu_torture_boosts;
 static long n_rcu_torture_timers;
@@ -163,11 +161,11 @@ static int stutter_pause_test;
 #endif
 int rcutorture_runnable = RCUTORTURE_RUNNABLE_INIT;
 
-#ifdef CONFIG_RCU_BOOST
+#if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU)
 #define rcu_can_boost() 1
-#else /* #ifdef CONFIG_RCU_BOOST */
+#else /* #if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU) */
 #define rcu_can_boost() 0
-#endif /* #else #ifdef CONFIG_RCU_BOOST */
+#endif /* #else #if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU) */
 
 static unsigned long boost_starttime;	/* jiffies of next boost test start. */
 DEFINE_MUTEX(boost_mutex);		/* protect setting boost_starttime */
@@ -751,6 +749,7 @@ static int rcu_torture_boost(void *arg)
 		n_rcu_torture_boost_rterror++;
 	}
 
+	init_rcu_head_on_stack(&rbi.rcu);
 	/* Each pass through the following loop does one boost-test cycle. */
 	do {
 		/* Wait for the next test interval. */
@@ -810,6 +809,7 @@ checkwait:	rcu_stutter_wait("rcu_torture_boost");
 
 	/* Clean up and exit. */
 	VERBOSE_PRINTK_STRING("rcu_torture_boost task stopping");
+	destroy_rcu_head_on_stack(&rbi.rcu);
 	rcutorture_shutdown_absorb("rcu_torture_boost");
 	while (!kthread_should_stop() || rbi.inflight)
 		schedule_timeout_uninterruptible(1);
@@ -886,7 +886,7 @@ rcu_torture_writer(void *arg)
 			old_rp->rtort_pipe_count++;
 			cur_ops->deferred_free(old_rp);
 		}
-		rcu_torture_current_version++;
+		rcutorture_record_progress(++rcu_torture_current_version);
 		oldbatch = cur_ops->completed();
 		rcu_stutter_wait("rcu_torture_writer");
 	} while (!kthread_should_stop() && fullstop == FULLSTOP_DONTSTOP);
@@ -1066,8 +1066,8 @@ rcu_torture_printk(char *page)
 	}
 	cnt += sprintf(&page[cnt], "%s%s ", torture_type, TORTURE_FLAG);
 	cnt += sprintf(&page[cnt],
-		       "rtc: %p ver: %ld tfle: %d rta: %d rtaf: %d rtf: %d "
-		       "rtmbe: %d rtbke: %ld rtbre: %ld rtbae: %ld rtbafe: %ld "
+		       "rtc: %p ver: %lu tfle: %d rta: %d rtaf: %d rtf: %d "
+		       "rtmbe: %d rtbke: %ld rtbre: %ld "
 		       "rtbf: %ld rtb: %ld nt: %ld",
 		       rcu_torture_current,
 		       rcu_torture_current_version,
@@ -1078,16 +1078,12 @@ rcu_torture_printk(char *page)
 		       atomic_read(&n_rcu_torture_mberror),
 		       n_rcu_torture_boost_ktrerror,
 		       n_rcu_torture_boost_rterror,
-		       n_rcu_torture_boost_allocerror,
-		       n_rcu_torture_boost_afferror,
 		       n_rcu_torture_boost_failure,
 		       n_rcu_torture_boosts,
 		       n_rcu_torture_timers);
 	if (atomic_read(&n_rcu_torture_mberror) != 0 ||
 	    n_rcu_torture_boost_ktrerror != 0 ||
 	    n_rcu_torture_boost_rterror != 0 ||
-	    n_rcu_torture_boost_allocerror != 0 ||
-	    n_rcu_torture_boost_afferror != 0 ||
 	    n_rcu_torture_boost_failure != 0)
 		cnt += sprintf(&page[cnt], " !!!");
 	cnt += sprintf(&page[cnt], "\n%s%s ", torture_type, TORTURE_FLAG);
@@ -1331,6 +1327,7 @@ rcu_torture_cleanup(void)
 	int i;
 
 	mutex_lock(&fullstop_mutex);
+	rcutorture_record_test_transition();
 	if (fullstop == FULLSTOP_SHUTDOWN) {
 		printk(KERN_WARNING /* but going down anyway, so... */
 		       "Concurrent 'rmmod rcutorture' and shutdown illegal!\n");
@@ -1486,8 +1483,6 @@ rcu_torture_init(void)
 	atomic_set(&n_rcu_torture_error, 0);
 	n_rcu_torture_boost_ktrerror = 0;
 	n_rcu_torture_boost_rterror = 0;
-	n_rcu_torture_boost_allocerror = 0;
-	n_rcu_torture_boost_afferror = 0;
 	n_rcu_torture_boost_failure = 0;
 	n_rcu_torture_boosts = 0;
 	for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++)
@@ -1624,6 +1619,7 @@ rcu_torture_init(void)
 		}
 	}
 	register_reboot_notifier(&rcutorture_shutdown_nb);
+	rcutorture_record_test_transition();
 	mutex_unlock(&fullstop_mutex);
 	return 0;
 
kernel/rcutree.c +479 -47

745 lines not on this page · raw message

kernel/rcutree.h +84 -20

171 lines not on this page · raw message

kernel/rcutree_plugin.h +447 -121

803 lines not on this page · raw message

kernel/rcutree_trace.c +165 -15

180 lines not on this page · raw message

kernel/softirq.c +1 -1
index 174f976..1396017 100644

Lines of this file are not shown. View the raw message.

lib/Kconfig.debug +3 -29
index c768bcd..3aa2780 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/gateway_client.c +1 -9
index 3cc4355..150b6ce 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/originator.c +1 -9
index 0b91330..ed23a589 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/soft-interface.c +1 -9
index 824e1f6..04efe02 100644

Lines of this file are not shown. View the raw message.

net/core/dev_addr_lists.c +2 -10
index 7b39f3e..e2e6693 100644

Lines of this file are not shown. View the raw message.

net/core/drop_monitor.c +2 -10
index 706502f..7f36b38 100644

Lines of this file are not shown. View the raw message.

net/core/gen_estimator.c +1 -8
index 7c23733..43b03dd 100644

Lines of this file are not shown. View the raw message.

net/core/net-sysfs.c +6 -28
index 5ceb257..80b2aad 100644

Lines of this file are not shown. View the raw message.

net/core/net_namespace.c +1 -9
index 3f86026..297bb92 100644

Lines of this file are not shown. View the raw message.

net/decnet/dn_dev.c +1 -6
index 0dcaa90..4c27615 100644

Lines of this file are not shown. View the raw message.

net/ipv4/fib_semantics.c +1 -11
index 641a5a2..33e2c35 100644

Lines of this file are not shown. View the raw message.

net/ipv4/fib_trie.c +1 -6
index 5fe9b8b..11d4d28 100644

Lines of this file are not shown. View the raw message.

net/ipv4/igmp.c +6 -26
index 1fd3d9c..8f62d66 100644

Lines of this file are not shown. View the raw message.

net/ipv6/addrconf.c +2 -14
index a7bda07..8f13d88 100644

Lines of this file are not shown. View the raw message.

net/ipv6/mcast.c +2 -6
index 76b8937..f2d98ca 100644

Lines of this file are not shown. View the raw message.

net/ipv6/sit.c +1 -6
index 43b3337..5f35d59 100644

Lines of this file are not shown. View the raw message.

net/mac80211/agg-tx.c +3 -11
index 63d852c..53defaf 100644

Lines of this file are not shown. View the raw message.

net/mac80211/work.c +1 -9
index e73c8ca..ac35496 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_extend.c +1 -7
index 80a23ed..05ecdc2 100644

Lines of this file are not shown. View the raw message.

net/netfilter/xt_osf.c +2 -9
index 4327e10..846f895 100644

Lines of this file are not shown. View the raw message.

net/netlabel/netlabel_unlabeled.c +2 -40

42 lines not on this page · raw message

net/netlink/af_netlink.c +1 -7
index c8f35b5..5fe4f3b 100644

Lines of this file are not shown. View the raw message.

net/phonet/pn_dev.c +1 -9
index 947038d..1566672 100644

Lines of this file are not shown. View the raw message.

net/sched/act_api.c +1 -6
index 14b42f4..a606025 100644

Lines of this file are not shown. View the raw message.

net/sched/act_police.c +1 -7
index 8a16307..b3b9b32 100644

Lines of this file are not shown. View the raw message.

net/sctp/bind_addr.c +1 -1
index faf71d1..3c06c87 100644

Lines of this file are not shown. View the raw message.

net/sctp/ipv6.c +1 -1
index 865ce7b..185fe05 100644

Lines of this file are not shown. View the raw message.

net/sctp/protocol.c +1 -8
index d5bf91d..065d999 100644

Lines of this file are not shown. View the raw message.

net/socket.c +1 -10
index 310d16b..c2ed7c9 100644

Lines of this file are not shown. View the raw message.

security/keys/user_defined.c +2 -14
index c6ca866..f66baf4 100644

Lines of this file are not shown. View the raw message.

security/selinux/netif.c +1 -17
index d6095d6..58cc481 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/trace-event-parse.c +0 -1
index 0a7ed5b..1e88485 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.