From: joeyli <jlee@suse.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: Chun-Yi Lee <joeyli.kernel@gmail.com>,
Justin Sanders <justin@coraid.com>,
Pavel Emelianov <xemul@openvz.org>,
Kirill Korotaev <dev@openvz.org>,
"David S . Miller" <davem@davemloft.net>,
Nicolai Stange <nstange@suse.com>,
Greg KH <gregkh@linuxfoundation.org>,
linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 1/2] aoe: add reference count in aoeif for tracking the using of net_device
Date: Fri, 4 Oct 2024 18:40:55 +0800 [thread overview]
Message-ID: <20241004104055.GN3296@linux-l9pv.suse> (raw)
In-Reply-To: <e20707d4-53bc-400c-bb66-f1bd63e063e9@kernel.dk>
Hi Jens,
On Wed, Oct 02, 2024 at 12:38:30PM -0600, Jens Axboe wrote:
> On 10/1/24 10:06 PM, Chun-Yi Lee wrote:
> > This is a patch for debugging. For tracking the reference count of using
> > net_device in aoeif, this patch adds a nd_pcpu_refcnt field in aoeif
> > structure. Two wrappers, nd_dev_hold() and nd_dev_put() are used to
> > call dev_hold(nd)/dev_put(nd) and maintain ifp->nd_pcpu_refcnt at the
> > same time.
>
> There's no parallel universe in which using a percpu reference over just
> a refcount_t for something like aoe is warranted.
>
Thanks for your review! I will use refcount_t in next version.
Joey Lee
next prev parent reply other threads:[~2024-10-04 10:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 4:06 [RFC PATCH 0/2] tracking the references of net_device in aoe Chun-Yi Lee
2024-10-02 4:06 ` [RFC PATCH 1/2] aoe: add reference count in aoeif for tracking the using of net_device Chun-Yi Lee
2024-10-02 5:35 ` Damien Le Moal
2024-10-04 7:17 ` joeyli
2024-10-02 18:38 ` Jens Axboe
2024-10-04 10:40 ` joeyli [this message]
2024-10-02 4:06 ` [RFC PATCH 2/2] aoe: using wrappers instead of dev_hold/dev_put for tracking the references of net_device in aoeif Chun-Yi Lee
2024-10-02 5:37 ` Damien Le Moal
2024-10-04 7:52 ` joeyli
2024-10-02 6:30 ` Greg KH
2024-10-04 7:53 ` joeyli
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=20241004104055.GN3296@linux-l9pv.suse \
--to=jlee@suse.com \
--cc=axboe@kernel.dk \
--cc=davem@davemloft.net \
--cc=dev@openvz.org \
--cc=gregkh@linuxfoundation.org \
--cc=joeyli.kernel@gmail.com \
--cc=justin@coraid.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nstange@suse.com \
--cc=xemul@openvz.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