Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33097
b: refs/heads/master
c: 76f10ad
h: refs/heads/master
i:
  33095: f50a74b
v: v3
  • Loading branch information
Arjan van de Ven authored and David S. Miller committed Aug 2, 2006
1 parent 5e5fded commit ff33850
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: dafee490858f79e144c5e6cdd84ceb9efa20a3f1
refs/heads/master: 76f10ad0e67cbc6ded2ee143e5188e0b7ff9fb15
9 changes: 8 additions & 1 deletion trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,17 @@ static inline __u32 skb_queue_len(const struct sk_buff_head *list_)

extern struct lock_class_key skb_queue_lock_key;

/*
* This function creates a split out lock class for each invocation;
* this is needed for now since a whole lot of users of the skb-queue
* infrastructure in drivers have different locking usage (in hardirq)
* than the networking core (in softirq only). In the long run either the
* network layer or drivers should need annotation to consolidate the
* main types of usage into 3 classes.
*/
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

0 comments on commit ff33850

Please sign in to comment.