Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184250
b: refs/heads/master
c: 6836b9b
h: refs/heads/master
v: v3
  • Loading branch information
jamal authored and David S. Miller committed Feb 17, 2010
1 parent ca1164a commit 93150d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: e06d41d09f314a1664ad60e46934b0ac131c6fa2
refs/heads/master: 6836b9bdd98e3b500cd49512484df68f46e14659
10 changes: 5 additions & 5 deletions trunk/net/xfrm/xfrm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1462,12 +1462,12 @@ EXPORT_SYMBOL(xfrm_find_acq_byseq);
u32 xfrm_get_acqseq(void)
{
u32 res;
static u32 acqseq;
static DEFINE_SPINLOCK(acqseq_lock);
static atomic_t acqseq;

do {
res = atomic_inc_return(&acqseq);
} while (!res);

spin_lock_bh(&acqseq_lock);
res = (++acqseq ? : ++acqseq);
spin_unlock_bh(&acqseq_lock);
return res;
}
EXPORT_SYMBOL(xfrm_get_acqseq);
Expand Down

0 comments on commit 93150d6

Please sign in to comment.