OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b5536a
)
net: Use lockdep_assert_in_softirq() in napi_consume_skb()
author
Yunsheng Lin
<linyunsheng@huawei.com>
Tue, 24 Nov 2020 10:49:29 +0000
(18:49 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Wed, 25 Nov 2020 23:08:38 +0000
(15:08 -0800)
Use napi_consume_skb() to assert the case when it is not called
in a atomic softirq context.
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c
patch
|
blob
|
history
diff --git
a/net/core/skbuff.c
b/net/core/skbuff.c
index
ffe3dcc
..
effa19d
100644
(file)
--- a/
net/core/skbuff.c
+++ b/
net/core/skbuff.c
@@
-902,6
+902,8
@@
void napi_consume_skb(struct sk_buff *skb, int budget)
return;
}
+ lockdep_assert_in_softirq();
+
if (!skb_unref(skb))
return;