netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] Add an assert in napi_consume_skb()
@ 2020-11-24 10:49 Yunsheng Lin
  2020-11-24 10:49 ` [PATCH net-next v3 1/2] lockdep: Introduce in_softirq lockdep assert Yunsheng Lin
  2020-11-24 10:49 ` [PATCH net-next v3 2/2] net: Use lockdep_assert_in_softirq() in napi_consume_skb() Yunsheng Lin
  0 siblings, 2 replies; 4+ messages in thread
From: Yunsheng Lin @ 2020-11-24 10:49 UTC (permalink / raw)
  To: peterz, mingo, will, viro, kyk.segfault, davem, kuba, linmiaohe,
	martin.varghese, pabeni, pshelar, fw, gnault, steffen.klassert,
	vladimir.oltean, edumazet, saeed
  Cc: netdev, linux-kernel, linuxarm

This patch introduces a lockdep_assert_in_softirq() interface and
uses it to assert the case when napi_consume_skb() is not called in
the softirq context.

Changelog:
V3: add comment to emphasize the ambiguous semantics
V2: Use lockdep instead of one-off Kconfig knob

Yunsheng Lin (2):
  lockdep: Introduce in_softirq lockdep assert
  net: Use lockdep_assert_in_softirq() in napi_consume_skb()

 include/linux/lockdep.h | 8 ++++++++
 net/core/skbuff.c       | 2 ++
 2 files changed, 10 insertions(+)

-- 
2.8.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-25 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-24 10:49 [PATCH net-next v3 0/2] Add an assert in napi_consume_skb() Yunsheng Lin
2020-11-24 10:49 ` [PATCH net-next v3 1/2] lockdep: Introduce in_softirq lockdep assert Yunsheng Lin
2020-11-25 23:11   ` Jakub Kicinski
2020-11-24 10:49 ` [PATCH net-next v3 2/2] net: Use lockdep_assert_in_softirq() in napi_consume_skb() Yunsheng Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).