From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752501AbcGETVm (ORCPT ); Tue, 5 Jul 2016 15:21:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46975 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751193AbcGETVk (ORCPT ); Tue, 5 Jul 2016 15:21:40 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20160705.101745.2191999709401594106.davem@davemloft.net> References: <20160705.101745.2191999709401594106.davem@davemloft.net> <146772433082.21657.14046392058484946464.stgit@warthog.procyon.org.uk> <146772437424.21657.5653571141789810019.stgit@warthog.procyon.org.uk> To: David Miller Cc: dhowells@redhat.com, netdev@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 06/24] rxrpc: Dup the main conn list for the proc interface MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14828.1467746498.1@warthog.procyon.org.uk> Date: Tue, 05 Jul 2016 20:21:38 +0100 Message-ID: <14829.1467746498@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 05 Jul 2016 19:21:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Miller wrote: > Wouldn't it be better to just code the proc stuff to walk whatever > table the rest of the stack uses to hold all of the connections > as TCP et al. do? There won't be "a table" that the rest of the stack uses. There will be more than one. Service conns and client conns will be handled separately, they will have different lifecycle strategies, different lifetimes and separate object handling code. It's almost worth actually having separate structs for them, but there's sufficient common ground that it doesn't actually make sense, I think. David