netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: "David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>
Cc: netdev <netdev@vger.kernel.org>,
	Eric Dumazet <edumazet@google.com>,
	Eric Dumazet <eric.dumazet@gmail.com>
Subject: [RFC -next 0/2] refcount: add tracking infrastructure
Date: Wed, 17 Nov 2021 11:20:29 -0800	[thread overview]
Message-ID: <20211117192031.3906502-1-eric.dumazet@gmail.com> (raw)

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


             reply	other threads:[~2021-11-17 19:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 19:20 Eric Dumazet [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211117192031.3906502-1-eric.dumazet@gmail.com \
    --to=eric.dumazet@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).