From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 663A61AF0A4; Mon, 26 May 2025 05:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748237764; cv=none; b=ZI9Y95nlgUmTWvDSMJN2v6n56LcpWbZg7PIZFf7VL+z0slRf7ykle26oVFl4L3fdsjVjE+MGplryLKmokGPoJk+op7mzHFgzHf+K6ncZ+L1CYm1cjpFPwSEwWQ+mfVXFsZUrjOsSNHlvw+NhE8mq+ZsYVfcKeBGRleRBdt/JXl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748237764; c=relaxed/simple; bh=SKRlxMUr2PYbtuzHQQip06nlTznUELGCZgtRP1OGQ88=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DKQY9rsmAg5CpD2Wo8cDLQu8R+dBPRpNPahgjlUKxYg2INig/PqHq4HQmST+KNmoKb3kPjeliMuYDBpTwVsaQj7TUkwu51d+SKjg19dnl2KyiXzRlNs8RW0fkYkPDX9yzaY7iXFnVQfHw/DF/eJ8C8hgFWpwRHJSBJSVknjmQfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 8700268AFE; Mon, 26 May 2025 07:35:56 +0200 (CEST) Date: Mon, 26 May 2025 07:35:55 +0200 From: Christoph Hellwig To: Kuniyuki Iwashima Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Simon Horman , Kuniyuki Iwashima , Chuck Lever , Jeff Layton , Matthieu Baerts , Keith Busch , Jens Axboe , Christoph Hellwig , Wenjia Zhang , Jan Karcher , Steve French , netdev@vger.kernel.org, mptcp@lists.linux.dev, linux-nfs@vger.kernel.org, linux-rdma@vger.kernel.org, linux-nvme@lists.infradead.org Subject: Re: [PATCH v2 net-next 6/7] socket: Replace most sock_create() calls with sock_create_kern(). Message-ID: <20250526053555.GG11639@lst.de> References: <20250523182128.59346-1-kuniyu@amazon.com> <20250523182128.59346-7-kuniyu@amazon.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250523182128.59346-7-kuniyu@amazon.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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?