Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121855
b: refs/heads/master
c: ef711cf
h: refs/heads/master
i:
  121853: 980bf46
  121851: 636ce03
  121847: 371c129
  121839: 0b14746
  121823: b97d3a0
  121791: cd1d2a5
  121727: 6f314d0
  121599: a478c54
  121343: 57a60d0
  120831: a6e573c
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 14, 2008
1 parent 0280300 commit 189b7f7
Show file tree
Hide file tree
Showing 2 changed files with 5 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: f30ab418a1d3c5a8b83493e7d70d6876a74aa0ce
refs/heads/master: ef711cf1d156428d4c2911b8c86c6ce90519dc45
6 changes: 4 additions & 2 deletions trunk/net/core/dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,11 @@ struct dst_entry *dst_destroy(struct dst_entry * dst)
void dst_release(struct dst_entry *dst)
{
if (dst) {
WARN_ON(atomic_read(&dst->__refcnt) < 1);
int newrefcnt;

smp_mb__before_atomic_dec();
atomic_dec(&dst->__refcnt);
newrefcnt = atomic_dec_return(&dst->__refcnt);
WARN_ON(newrefcnt < 0);
}
}
EXPORT_SYMBOL(dst_release);
Expand Down

0 comments on commit 189b7f7

Please sign in to comment.