Re: [PATCH v2 net-next 6/7] socket: Replace most sock_create() calls with sock_create_kern().

Kuniyuki Iwashima
2025-05-30T03:03:11Z

From: Christoph Hellwig <hch@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.