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 418EB19D880; Mon, 26 May 2025 05:33:48 +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=1748237629; cv=none; b=MePDSaPq3xhOl5lL1tH0wdm3jcE877rovAJErX/QxjAr7GexRSpuq2nKb/Zd8OtNI3Q5tBnQ+Vjw2L/Is2ATkMwZfAGyXYSoySAzxLdf9ERpSw2Wob6b4sKdLnZcwlaNIMfObimE0Ny6c1QLrYM/Eq8HKrXzQtb4pGzdfhYuS8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748237629; c=relaxed/simple; bh=6KjRGakdHLvTPtXjxEJatZfcW4FuqXdDm78T3RH7W1k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NO25xM/Xsuox+szztg9s098okaha6FhVQtDW8HRBL2kGqiQe+JpwT61u5gFfnTFinzpEMCMrrAMi3ASTeODY/DVXr30tVjrJrzwHOiaLvlJUK627DyLhXLPN6Ym369QYNTUpEPf8y7qBGONHmQGp53pKU/kBXr8B3VIzZPHElDw= 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 C070F68D0D; Mon, 26 May 2025 07:33:43 +0200 (CEST) Date: Mon, 26 May 2025 07:33:43 +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: <20250526053343.GF11639@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. Same thing, one patch per subsystem please.