Skip to content

Commit

Permalink
rcu: Remove redundant check for rcu_head misalignment
Browse files Browse the repository at this point in the history
There is now an unconditional check for rcu_head misalignment in
__call_rcu(), so remove the old conditional one in debug_rcu_head_queue().

Reported-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
  • Loading branch information
Paul E. McKenney committed Feb 21, 2012
1 parent 3c1b1ce commit ce5df97
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/rcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ extern struct debug_obj_descr rcuhead_debug_descr;

static inline void debug_rcu_head_queue(struct rcu_head *head)
{
WARN_ON_ONCE((unsigned long)head & 0x3);
debug_object_activate(head, &rcuhead_debug_descr);
debug_object_active_state(head, &rcuhead_debug_descr,
STATE_RCU_HEAD_READY,
Expand Down

0 comments on commit ce5df97

Please sign in to comment.