[PATCH v2 net-next 6/7] socket: Replace most sock_create() calls with sock_create_kern().
Kuniyuki Iwashima
kuni1840 at gmail.com
Thu May 29 20:03:06 PDT 2025
From: Christoph Hellwig <hch at lst.de>
Date: Mon, 26 May 2025 07:35:55 +0200
> On Fri, May 23, 2025 at 11:21:12AM -0700, Kuniyuki Iwashima wrote:
> > Except for only one user, sctp_do_peeloff(), all sockets created
> > by drivers and fs are not tied to userspace processes nor exposed
> > via file descriptors.
> >
> > Let's use sock_create_kern() for such in-kernel use cases as CIFS
> > client and NFS.
>
> So if sock_create is now almost unused and the special case, should
> it also be renamed to make that explicit and make people not accidentally
> use it by default?
I actually tried to to do so as sock_create_user() in the
previous series but was advised to avoid rename as the benefit
against LoC was low.
More information about the Linux-nvme
mailing list