From: Jakub Kicinski <kuba@kernel.org>
To: "Binbin Deng" <18983559317@163.com>
Cc: jk@codeconstruct.com.au, matt@codeconstruct.com.au,
davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
horms@kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Binbin Deng" <dengbinbin21@nudt.edu.cn>
Subject: Re: [PATCH net v2] net/mctp: publish the mctp_dev only after it is initialised
Date: Fri, 25 Sep 2026 16:35:01 -0700 [thread overview]
Message-ID: <20260925163501.18db5195@kernel.org> (raw)
In-Reply-To: <729830b8.130.1a0c945579d.Coremail.18983559317@163.com>
On Tue, 22 Sep 2026 21:19:19 +0800 (CST) Binbin Deng wrote:
> + /*
> + * Associate to net_device. Publish only once the object is fully
> + * initialised: __mctp_dev_get() runs under rcu_read_lock() only and
> + * hands this object to readers as soon as mctp_ptr is assigned, so
> + * they must never observe mdev->dev == NULL.
> + */
Too obvious to include, I'll trim when applying
next prev parent reply other threads:[~2026-09-25 23:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 13:19 [PATCH net v2] net/mctp: publish the mctp_dev only after it is initialised Binbin Deng
2026-09-22 14:22 ` Eric Dumazet
2026-09-25 23:35 ` Jakub Kicinski [this message]
2026-09-25 23:40 ` patchwork-bot+netdevbpf
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=20260925163501.18db5195@kernel.org \
--to=kuba@kernel.org \
--cc=18983559317@163.com \
--cc=davem@davemloft.net \
--cc=dengbinbin21@nudt.edu.cn \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jk@codeconstruct.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeconstruct.com.au \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.