netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC -next 0/2] refcount: add tracking infrastructure
@ 2021-11-17 19:20 Eric Dumazet
  2021-11-17 19:20 ` [RFC -next 1/2] lib: add reference counting infrastructure Eric Dumazet
  2021-11-17 19:20 ` [RFC -next 2/2] net: add dev_hold_track() and dev_put_track() helpers Eric Dumazet
  0 siblings, 2 replies; 13+ messages in thread
From: Eric Dumazet @ 2021-11-17 19:20 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski; +Cc: netdev, Eric Dumazet, Eric Dumazet

From: Eric Dumazet <edumazet@google.com>

RFC only, I yet have to convert some dev_put()/dev_hold() to show
how this works.

I am posting this because Jakub is working on same issue.

Eric Dumazet (2):
  lib: add reference counting infrastructure
  net: add dev_hold_track() and dev_put_track() helpers

 include/linux/netdevice.h   |  23 +++++++
 include/linux/ref_tracker.h |  78 ++++++++++++++++++++++++
 lib/Kconfig                 |   4 ++
 lib/Makefile                |   2 +
 lib/ref_tracker.c           | 116 ++++++++++++++++++++++++++++++++++++
 net/Kconfig                 |   8 +++
 net/core/dev.c              |   3 +
 7 files changed, 234 insertions(+)
 create mode 100644 include/linux/ref_tracker.h
 create mode 100644 lib/ref_tracker.c

-- 
2.34.0.rc1.387.gb447b232ab-goog


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

end of thread, other threads:[~2021-12-01  7:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17 19:20 [RFC -next 0/2] refcount: add tracking infrastructure Eric Dumazet
2021-11-17 19:20 ` [RFC -next 1/2] lib: add reference counting infrastructure Eric Dumazet
2021-11-17 20:03   ` Jakub Kicinski
2021-11-17 20:16     ` Eric Dumazet
2021-11-17 20:47       ` Jakub Kicinski
2021-11-17 22:43         ` Eric Dumazet
2021-11-18  0:26           ` Jakub Kicinski
2021-11-30  9:09           ` Dmitry Vyukov
2021-11-30 15:02             ` Jakub Kicinski
2021-11-30 15:07             ` Eric Dumazet
2021-12-01  7:23               ` Dmitry Vyukov
2021-11-30  9:39   ` Dmitry Vyukov
2021-11-17 19:20 ` [RFC -next 2/2] net: add dev_hold_track() and dev_put_track() helpers Eric Dumazet

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).