diff options
Diffstat (limited to 'kernel/rcupdate.c')
| -rw-r--r-- | kernel/rcupdate.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/kernel/rcupdate.c b/kernel/rcupdate.c index 48ab70384a4c..cce6ba8bbace 100644 --- a/kernel/rcupdate.c +++ b/kernel/rcupdate.c | |||
| @@ -104,31 +104,7 @@ void __rcu_read_unlock(void) | |||
| 104 | } | 104 | } |
| 105 | EXPORT_SYMBOL_GPL(__rcu_read_unlock); | 105 | EXPORT_SYMBOL_GPL(__rcu_read_unlock); |
| 106 | 106 | ||
| 107 | /* | 107 | #endif /* #ifdef CONFIG_PREEMPT_RCU */ |
| 108 | * Check for a task exiting while in a preemptible-RCU read-side | ||
| 109 | * critical section, clean up if so. No need to issue warnings, | ||
| 110 | * as debug_check_no_locks_held() already does this if lockdep | ||
| 111 | * is enabled. | ||
| 112 | */ | ||
| 113 | void exit_rcu(void) | ||
| 114 | { | ||
| 115 | struct task_struct *t = current; | ||
| 116 | |||
| 117 | if (likely(list_empty(¤t->rcu_node_entry))) | ||
| 118 | return; | ||
| 119 | t->rcu_read_lock_nesting = 1; | ||
| 120 | barrier(); | ||
| 121 | t->rcu_read_unlock_special = RCU_READ_UNLOCK_BLOCKED; | ||
| 122 | __rcu_read_unlock(); | ||
| 123 | } | ||
| 124 | |||
| 125 | #else /* #ifdef CONFIG_PREEMPT_RCU */ | ||
| 126 | |||
| 127 | void exit_rcu(void) | ||
| 128 | { | ||
| 129 | } | ||
| 130 | |||
| 131 | #endif /* #else #ifdef CONFIG_PREEMPT_RCU */ | ||
| 132 | 108 | ||
| 133 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 109 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
| 134 | static struct lock_class_key rcu_lock_key; | 110 | static struct lock_class_key rcu_lock_key; |
| @@ -145,9 +121,6 @@ static struct lock_class_key rcu_sched_lock_key; | |||
| 145 | struct lockdep_map rcu_sched_lock_map = | 121 | struct lockdep_map rcu_sched_lock_map = |
| 146 | STATIC_LOCKDEP_MAP_INIT("rcu_read_lock_sched", &rcu_sched_lock_key); | 122 | STATIC_LOCKDEP_MAP_INIT("rcu_read_lock_sched", &rcu_sched_lock_key); |
| 147 | EXPORT_SYMBOL_GPL(rcu_sched_lock_map); | 123 | EXPORT_SYMBOL_GPL(rcu_sched_lock_map); |
| 148 | #endif | ||
| 149 | |||
| 150 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | ||
| 151 | 124 | ||
| 152 | int debug_lockdep_rcu_enabled(void) | 125 | int debug_lockdep_rcu_enabled(void) |
| 153 | { | 126 | { |
