Received: by 10.192.165.156 with SMTP id m28csp2087341imm; Thu, 12 Apr 2018 08:24:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Lsb11TzIGrJOUFTCoqFto2skfyiRnXRlBA/IVHg4HqczlEw5Bi7LWkgpMvXmmh0pqTv1B X-Received: by 10.101.97.4 with SMTP id z4mr1074877pgu.354.1523546654431; Thu, 12 Apr 2018 08:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523546654; cv=none; d=google.com; s=arc-20160816; b=v0r2ARUFiOaXqtWi4dVGkMBWDOvk7ckWCAsLDVGagzR9c3/y3yEdEyHH2G1LE7b46s KHdlYFLVsq/Z/ZUINvS7yMZLNeq9jBriMsblQM1LTnb5MS9G90Zv55HwTNhdQu4hC59t FYEeODERJywUwDlwypyq/kuCzTBhvqlCtdOUxArw1WYUw+XybU6KrDLqGmoOfUJo/rPV 9lO3+770ceoALsjMtF+CRVkcrHQ7jlDAGC11aMuE7TEdNP26CMYDG4OMDsto6GE2AFnd CVKVj17Q7GWKUxRegOzX9JRxqyafPGx1tZ2V5CxjjruRSEpwzFFz7BIe0zNkJ8PGlvAq Gzlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=uld8dbGwYM4aCHysk6sa9R0WvyuhH9wx1YAUxA1DZw4=; b=0uDhHdmbDgQXlklCw5RSBbPHmVTNtMBEsQIg63POTZvr86thsZpjVgAAK0scv+7GZZ Z/HHvNPURJ+gPoxbXb9NS1pxEiNCeqqlVo77Wx13J6oYL+DdS+lMn8KyI6cABbDPBWO8 jTxHS+aPwm0s6wX33JionnqewgVTM+54Y6Z6E1hJ/nNosoKLYgT622jIUeGeZnN+ctOV HMbtZMDJCXcY7uQXbOWDwE0QxTztAzXINM/KGSMD+6IxJ9g8ONzh/G9WUm6KYRdFilH2 h8wGna0m/CC/Cv2ueISgJIuwLQ/Meg9QcBe6wn1SxWWwc8JzZHSEkFjK6X6FAKUbTUWu bsCw== ARC-Authentication-Results: i=1; mx.google.com; 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 h91-v6si3470669pld.716.2018.04.12.08.23.37; Thu, 12 Apr 2018 08:24:14 -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; 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 S1754248AbeDLPPs (ORCPT + 99 others); Thu, 12 Apr 2018 11:15:48 -0400 Received: from resqmta-ch2-08v.sys.comcast.net ([69.252.207.40]:43114 "EHLO resqmta-ch2-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753779AbeDLPPp (ORCPT ); Thu, 12 Apr 2018 11:15:45 -0400 Received: from resomta-ch2-17v.sys.comcast.net ([69.252.207.113]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id 6dv5fC3jWhoLR6dwvf8dmR; Thu, 12 Apr 2018 15:15:45 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-17v.sys.comcast.net with SMTP id 6dwsf4mj6jTV06dwtf51x9; Thu, 12 Apr 2018 15:15:45 +0000 Received: by gentwo.org (Postfix, from userid 1001) id E21CF116168D; Thu, 12 Apr 2018 10:15:42 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id DF7A01161685; Thu, 12 Apr 2018 10:15:42 -0500 (CDT) Date: Thu, 12 Apr 2018 10:15:42 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Matthew Wilcox cc: 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 Subject: Re: [PATCH v2 2/2] slab: __GFP_ZERO is incompatible with a constructor In-Reply-To: <20180412142718.GA20398@bombadil.infradead.org> Message-ID: References: <20180411060320.14458-1-willy@infradead.org> <20180411060320.14458-3-willy@infradead.org> <20180411192448.GD22494@bombadil.infradead.org> <20180411235652.GA28279@bombadil.infradead.org> <20180412142718.GA20398@bombadil.infradead.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfPPhOUX2aBKr8PY8jtnOwbM+GgqVU5y0KO71dJqc8STjL24yOSIoht0v70WqNWFvdfxPXsMmmUor5ir8clG4F087in4usbRsTKPN07r43vLerMJ1GFOp lyRCGt5M2UzTnoFNpFqf13S0J+aLZsWFAPzKeFHmCf41c4LFZlPsO1jJli+dHD158c7R3GO/Litu0olHkjEBtXVqhPXf6D4b+TJFfiMFKlX7vSI9P3qXJ2Lf kU8d6rD9gJF897GOPP6WXIOCYgaC77vIaj08aM7esD12bwnGKcS2PkjNw+Zj186yVATOhgmk7qNj5iSF1ZumXbLzvI9JftcE98foUMJcDtoWPoDD2+wWnfjR LSlmzjy/ycsYLRN4INr9YOFq6Vu8oHswm0zBMDtdgI9mCimRo+LhRqwqXKqL2ytCZyezcJ/GRqAN2AYXz5g4L+ZjdMkExMYU4jFWXK02Y1KLkD+XU45DDi18 04bTv1n5K3Ra76ti Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Apr 2018, Matthew Wilcox wrote: > > Thus the next invocation of the fastpath will find that c->freelist is > > NULL and go to the slowpath. ... > > _ah_. I hadn't figured out that c->page was always NULL in the debugging > case too, so ___slab_alloc() always hits the 'new_slab' case. Thanks! Also note that you can have SLUB also do the build with all debugging on without having to use a command like parameter (like SLAB). That requires CONFIG_SLUB_DEBUG_ON to be set. CONFIG_SLUB_DEBUG is set by default for all distro builds. It only includes the debug code but does not activate them by default. Kernel command line parameters allow you to selectively switch on debugging features for specific slab caches so that you can limit the latency variations introduced by debugging into the production kernel. Thus subtle races may be found.