From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752010AbdHGRdY (ORCPT ); Mon, 7 Aug 2017 13:33:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:33037 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751453AbdHGRdX (ORCPT ); Mon, 7 Aug 2017 13:33:23 -0400 Date: Mon, 7 Aug 2017 10:33:11 -0700 From: Davidlohr Bueso To: Guillaume Knispel Cc: Andrew Morton , Manfred Spraul , Kees Cook , Alexey Dobriyan , "Eric W. Biederman" , "Peter Zijlstra (Intel)" , Ingo Molnar , Sebastian Andrzej Siewior , Serge Hallyn , Andrey Vagin , Marc Pardo , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipc: optimize semget/shmget/msgget for lots of keys Message-ID: <20170807173311.GB25038@linux-80c1.suse> References: <20170731084237.GA123231@ubuntu> <20170802200644.GA2395@linux-80c1.suse> <20170803171429.GA2237@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20170803171429.GA2237@ubuntu> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 03 Aug 2017, Guillaume Knispel wrote: >In linux/init.h I saw that a pure_initcall is reserved to only >initialize variables and must have no dependency on anything else; >I interpreted that, + "pure" in the name, thinking we should not e.g. >allocate in a pure_initcall, however I see that net_ns_init() calls >kmem_cache_create() and others, so maybe we can keep ipc_ns_init() as >a pure_initcall? Yeah, I don't see this as a limitation wrt link order. Among others, filelocks also do this. Not to mention futexes with alloc_large_system_hash(). So lets just keep this as is. Thanks, Davidlohr