Received: by 10.213.65.68 with SMTP id h4csp4194061imn; Tue, 10 Apr 2018 10:42:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/EaMMqMZm8GAdwOal+X9P75mqE7si1kdl8a/TI94nleZratJR17gKuvFZGhhSZJbora5tB X-Received: by 2002:a17:902:70c6:: with SMTP id l6-v6mr1391161plt.201.1523382139666; Tue, 10 Apr 2018 10:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523382139; cv=none; d=google.com; s=arc-20160816; b=n9qEm+J76OsuRwqiysVS+rI/YEnAXP/MSsg1BxSQLgGB58d7imbJRFUQKvphw1xF38 eXuBzaS4dLxo5Khh1OJZO1gI0OEfIooG9uoVML2QPc/S6U0kTXqRmEEC9NTl68F3DXem APP+PkvUvk4gE1Gnz2/XzSbTRmSA7XDgb9H8Q76JG7u0xNPAqRTyPApieuqoKg/XC5EM bm3prl5OMjhB04pBhjd9hs0Rnx8caca9uWOl2SRo4fTgE+Rre0CD5TDz5Ccvh68jT2zf 34hq8rS2qv2baAR5GRpNluhZwix98zBMXJbOq8qIyVPWuz+nmVinIwOwm1AgagwSBwJ/ ByvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=9jyzQSkuCFH6oiXdW8grLDBPGUKGA9ue1iIaaM32MB4=; b=aVeMndcCNasP3EwCT8dPxQjDRNTmzyAgWVeu2rdHoyFAHmdV0psWf6Y5b8pSJTsX5J VhnXFaoJAERlCHwUJSGkbrjIb537oowXOwAlF0iWv7y56UoAS1/bsO0iL4yB3zxLoAbn NTB/tCmSXpvstA4G4M02IPr7+vq+gVN7AgR3pDWkClwYYQNmUrYSre+X6FDNI9mu4yVK fAQ1WmQwv8KXahLQ52SjmEiLftRs5rLCe8agLEsiG06bzT9iw8vPIDuf2A9n0kGPCkE9 oYyLujEFb7VSw5bsphPIjb029us+PAjNtl4FS8w3H5dIilb8IAteQOBJIYL0m2VuN0v+ s7ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RJ60/l2l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si3013602plh.121.2018.04.10.10.41.42; Tue, 10 Apr 2018 10:42:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RJ60/l2l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751886AbeDJRit (ORCPT + 99 others); Tue, 10 Apr 2018 13:38:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56094 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbeDJRir (ORCPT ); Tue, 10 Apr 2018 13:38:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9jyzQSkuCFH6oiXdW8grLDBPGUKGA9ue1iIaaM32MB4=; b=RJ60/l2l4Ijct0rqrSiIo7o3e 3el0Zz0qjbC3PIeXffnOOgPAsi1LiVKMVMQjW+9j2M+iB/xg+wgxMAAHQEhUyQMH/vWt+2Fa0TbCQ j4e29djHmQiuoMapXUM0o/dxA2E1BSRHTW/JU/B3dIabFOkAivbseNNVuCYxNY5U0KYpw/KZNafkx ynuS2gJiXK6x/UvB4DRxXt7MlnAYdti4OoC86qYKcTeXXUOOzdgpKXWMuKo8mPuWrgnx3E17HDSvY 2IyQxKC0E0zRuhmx/ojl5UkKOt8EKglo+bUUVcUyLqDs7WDcDtFCR4QDFHXz2lolNg7nlhr7Cdi9l LRalT7IRw==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5xE9-0004Es-Pz; Tue, 10 Apr 2018 17:38:41 +0000 Date: Tue, 10 Apr 2018 10:38:41 -0700 From: Matthew Wilcox To: Christopher Lameter Cc: Eric Dumazet , linux-mm@kvack.org, Matthew Wilcox , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-kernel@vger.kernel.org, Jan Kara , Jeff Layton , Mel Gorman , stable@vger.kernel.org Subject: Re: [PATCH 1/2] slab: __GFP_ZERO is incompatible with a constructor Message-ID: <20180410173841.GD3614@bombadil.infradead.org> References: <20180410125351.15837-1-willy@infradead.org> <20180410165054.GC3614@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 12:30:23PM -0500, Christopher Lameter wrote: > On Tue, 10 Apr 2018, Matthew Wilcox wrote: > > > If we want to get rid of the concept of constructors, it's doable, > > but somebody needs to do the work to show what the effects will be. > > How do you envision dealing with the SLAB_TYPESAFE_BY_RCU slab caches? > Those must have a defined state of the objects at all times and a constructor is > required for that. And their use of RCU is required for numerous lockless > lookup algorithms in the kernhel. Not at all times. Only once they've been used. Re-constructing them once they've been used might break the rcu typesafety, I suppose ... would need to examine the callers.