mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexandra Winter <wintera@linux.ibm.com>
To: Rosen Penev <rosenp@gmail.com>
Cc: linux-rdma@vger.kernel.org,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	"D. Wythe" <alibuda@linux.alibaba.com>,
	Dust Li <dust.li@linux.alibaba.com>,
	Sidraya Jayagond <sidraya@linux.ibm.com>,
	Wenjia Zhang <wenjia@linux.ibm.com>,
	Mahanta Jambigi <mjambigi@linux.ibm.com>,
	Tony Lu <tonylu@linux.alibaba.com>,
	Wen Gu <guwen@linux.alibaba.com>,
	"open list:NETWORKING [GENERAL]" <netdev@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:SHARED MEMORY COMMUNICATIONS (SMC) SOCKETS"
	<linux-s390@vger.kernel.org>
Subject: Re: [PATCH] smc: Use flexible array for SMCD connections
Date: Wed, 20 May 2026 09:25:20 +0200	[thread overview]
Message-ID: <ab910356-77a8-4aa1-8094-a6e43c027c59@linux.ibm.com> (raw)
In-Reply-To: <CAKxU2N8_JhZhsSqm15DxFBkXv=ZBYQXQJ7xdw6SHrwG9dsWZVg@mail.gmail.com>



On 19.05.26 23:45, Rosen Penev wrote:
> On Tue, May 19, 2026 at 1:57 AM Alexandra Winter <wintera@linux.ibm.com> wrote:
>>
>>
>>
>> On 19.05.26 02:52, Rosen Penev wrote:
>>> Store the per-DMB connection pointers in the SMCD device allocation
>>> instead of allocating a separate connection array.
>>>
>>> This keeps the connection table tied to the SMCD device lifetime and
>>> simplifies the allocation and cleanup paths.
>>>
>>> Assisted-by: Codex:GPT-5.5
>>> Signed-off-by: Rosen Penev <rosenp@gmail.com>
>>> ---
>>
>> I don't think GPT did a good job here.
>> There are many other instances, where smcd->conn is freed,
>> those would need adoption as well afaiu.
> git grep kfree | grep \\\-\>conn\)
> drivers/media/dvb-core/dvbdev.c: kfree(dvbdev->adapter->conn);
> net/wireless/sme.c: kfree(wdev->conn);
> net/wireless/sme.c: kfree(wdev->conn);
> 
> I assume you mean net/wireless/sme.c
>>

I have to apologize. You are right, the patch is complete.
I guess I was confused by smc_conn_free() or what else.
I should have been more careful.


>> I am also not sure that there is enough improvement in the idea
>> to warrant a patch, but I leave that to the SMC maintainers.
>>
>>

  reply	other threads:[~2026-05-20  7:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19  0:52 Rosen Penev
2026-05-19  8:57 ` Alexandra Winter
2026-05-19 21:45   ` Rosen Penev
2026-05-20  7:25     ` Alexandra Winter [this message]
2026-05-20 16:16 ` Sidraya Jayagond
2026-05-21  0:20 ` 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=ab910356-77a8-4aa1-8094-a6e43c027c59@linux.ibm.com \
    --to=wintera@linux.ibm.com \
    --cc=alibuda@linux.alibaba.com \
    --cc=davem@davemloft.net \
    --cc=dust.li@linux.alibaba.com \
    --cc=edumazet@google.com \
    --cc=guwen@linux.alibaba.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mjambigi@linux.ibm.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rosenp@gmail.com \
    --cc=sidraya@linux.ibm.com \
    --cc=tonylu@linux.alibaba.com \
    --cc=wenjia@linux.ibm.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

all inboxes | Powered by JetHome®