Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144583
b: refs/heads/master
c: 0f3d042
h: refs/heads/master
i:
  144581: 6a2a76c
  144579: 97add3a
  144575: 5cac01f
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 1, 2009
1 parent 28708aa commit c6e6ef9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ec581f6a42bbbea5271c66da9769a41b46c74e10
refs/heads/master: 0f3d042ed2f934f149ccb78300454beaf0c1134b
4 changes: 2 additions & 2 deletions trunk/include/linux/netfilter/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,15 @@ static inline void xt_info_rdlock_bh(void)

local_bh_disable();
lock = &__get_cpu_var(xt_info_locks);
if (!lock->readers++)
if (likely(!lock->readers++))
spin_lock(&lock->lock);
}

static inline void xt_info_rdunlock_bh(void)
{
struct xt_info_lock *lock = &__get_cpu_var(xt_info_locks);

if (!--lock->readers)
if (likely(!--lock->readers))
spin_unlock(&lock->lock);
local_bh_enable();
}
Expand Down

0 comments on commit c6e6ef9

Please sign in to comment.