Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31820
b: refs/heads/master
c: 06825ba
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jul 3, 2006
1 parent 7cec5ad commit c8178ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3aceafc1e2596f1c2c4e053126561f00b68e3a1a
refs/heads/master: 06825ba3553151eea24206bc53d4fc3de49e0ab1
3 changes: 3 additions & 0 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,12 @@ static inline __u32 skb_queue_len(const struct sk_buff_head *list_)
return list_->qlen;
}

extern struct lock_class_key skb_queue_lock_key;

static inline void skb_queue_head_init(struct sk_buff_head *list)
{
spin_lock_init(&list->lock);
lockdep_set_class(&list->lock, &skb_queue_lock_key);
list->prev = list->next = (struct sk_buff *)list;
list->qlen = 0;
}
Expand Down
7 changes: 7 additions & 0 deletions trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
static kmem_cache_t *skbuff_head_cache __read_mostly;
static kmem_cache_t *skbuff_fclone_cache __read_mostly;

/*
* lockdep: lock class key used by skb_queue_head_init():
*/
struct lock_class_key skb_queue_lock_key;

EXPORT_SYMBOL(skb_queue_lock_key);

/*
* Keep out-of-line to prevent kernel bloat.
* __builtin_return_address is not used because it is not always
Expand Down

0 comments on commit c8178ad

Please sign in to comment.