From: sashiko-bot@kernel.org
To: "Jiale Yao" <yaojiale02@163.com>, linux-rdma@vger.kernel.org
Subject: Re: [PATCH] RDMA/core: skip compat cleanup for init_net
Date: Wed, 28 Oct 2026 05:07:37 +0000 [thread overview]
Message-ID: <sashiko-outbox-187503@kernel.org> (raw)
In-Reply-To: <20261028050245.125370-1-yaojiale02@163.com>
> rdma_dev_init_net() does not allocate an rdma_nets XArray entry or
> create compatibility devices for init_net. rdma_dev_exit_net() still
> runs the common cleanup, using the zero-initialized rnet->id to hide and
> erase an entry and removing compatibility devices with that ID. ID zero
> may belong to a non-default network namespace.
>
> Handle init_net separately on exit, mirroring the initialization path.
> Only tear down its netlink state and leave the XArray and compatibility
> devices untouched.
>
> Fixes: 1d2fedd8561d ("RDMA/core: Support netlink commands in non init_net net namespaces")
> Cc: stable@vger.kernel.org
> Signed-off-by: Jiale Yao <yaojiale02@163.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261028050337.127464-1-yaojiale02@163.com?part=1
prev parent reply other threads:[~2026-10-28 5:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 5:02 [PATCH] RDMA/core: skip compat cleanup for init_net Jiale Yao
2026-10-28 5:07 ` sashiko-bot [this message]
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=sashiko-outbox-187503@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=yaojiale02@163.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox