Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183780
b: refs/heads/master
c: 28aecb9
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Feb 2, 2010
1 parent dad13e2 commit 43a671f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: d1c9ae6d1e7b95cedc8e39e8949e795379a0669e
refs/heads/master: 28aecb9d7728dc26bf03ce7925fe622023a83a2a
9 changes: 4 additions & 5 deletions trunk/net/key/af_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -3019,12 +3019,11 @@ static int pfkey_send_policy_notify(struct xfrm_policy *xp, int dir, struct km_e
static u32 get_acqseq(void)
{
u32 res;
static u32 acqseq;
static DEFINE_SPINLOCK(acqseq_lock);
static atomic_t acqseq;

spin_lock_bh(&acqseq_lock);
res = (++acqseq ? : ++acqseq);
spin_unlock_bh(&acqseq_lock);
do {
res = atomic_inc_return(&acqseq);
} while (!res);
return res;
}

Expand Down

0 comments on commit 43a671f

Please sign in to comment.