Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268973
b: refs/heads/master
c: 6206ab9
h: refs/heads/master
i:
  268971: a711806
v: v3
  • Loading branch information
Paul E. McKenney authored and Paul E. McKenney committed Sep 29, 2011
1 parent 5c59290 commit 4c23b25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6846c0c54074d47927c90eab4a805115e1ae3292
refs/heads/master: 6206ab9bab620fc0fbbed30ce20d145b0b3d1840
14 changes: 2 additions & 12 deletions trunk/include/linux/rcupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,6 @@ extern void call_rcu_sched(struct rcu_head *head,

extern void synchronize_sched(void);

static inline void __rcu_read_lock_bh(void)
{
local_bh_disable();
}

static inline void __rcu_read_unlock_bh(void)
{
local_bh_enable();
}

#ifdef CONFIG_PREEMPT_RCU

extern void __rcu_read_lock(void);
Expand Down Expand Up @@ -686,7 +676,7 @@ static inline void rcu_read_unlock(void)
*/
static inline void rcu_read_lock_bh(void)
{
__rcu_read_lock_bh();
local_bh_disable();
__acquire(RCU_BH);
rcu_read_acquire_bh();
}
Expand All @@ -700,7 +690,7 @@ static inline void rcu_read_unlock_bh(void)
{
rcu_read_release_bh();
__release(RCU_BH);
__rcu_read_unlock_bh();
local_bh_enable();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/rcutree_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@ void __rcu_read_unlock(void)
{
struct task_struct *t = current;

barrier(); /* needed if we ever invoke rcu_read_unlock in rcutree.c */
if (t->rcu_read_lock_nesting != 1)
--t->rcu_read_lock_nesting;
else {
barrier(); /* critical section before exit code. */
t->rcu_read_lock_nesting = INT_MIN;
barrier(); /* assign before ->rcu_read_unlock_special load */
if (unlikely(ACCESS_ONCE(t->rcu_read_unlock_special)))
Expand Down

0 comments on commit 4c23b25

Please sign in to comment.