Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp709426pxa; Wed, 19 Aug 2020 12:38:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw27fu+ZlUa6YXzT6M9U0qn/FjHq3Ba+LKZHpefVKQdqDgTkqrf5XyUItrf6Mim1ZuO100T X-Received: by 2002:a05:6402:22bc:: with SMTP id cx28mr25402537edb.171.1597865902186; Wed, 19 Aug 2020 12:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597865902; cv=none; d=google.com; s=arc-20160816; b=fzdiJOWBpffiVpWGHoGp4Ap8nVMDCNy7NWqrz9JI579wvr7+Vo9StR/MG0LUtCtoNU Zz410Dj90HTm6qoghCuB9Y0v3t9jAVOypQeZK1QDYPprh/9w4lCEr+YcNaH7WSUiwYn+ QFvwaH3b9ISZ7fi73ReXSbW4WToMcr8LRtbjWFrF3j/wJlGGA7+nRd5wSRikCCPG9YS7 0apEuNr7vzt7OAO68jZbKU9Hm6r63UJq5cqZrb5w+/iRSLU/bmky7mBoAgxiYBFfCDeV t8ccyEDJBOo0/hfs5fqehpTp3dI9nOCtGViGccgq0wlUJdR+MNfssdqLlnJDdRpyBTDt u6HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9x0jc66MAtk9wjgFzbdNibnhuoxf+gfuQth7J2F2zqc=; b=HD3gfCsf/SfeZqYVFs05S8W74irlWW7xGHUKT01uxXW2rxhyjCjA9EXJbhyU00oWdB QapZtqzAM4ILdesKuaWaiu2b9pAcvqjZf3l+ZXbd8yrBMUQx7R4dQdf3uMZWp8Vo4tN2 JO5FbYV5a7HxOinT7Jk8JdlYUagU5gokxUjMp961sO6rzzuiEuNUGWj7oAU1YsWPExMu qnUveZuB7Abs9Gogf8gqnDP7bZID8v+PF03RuRgFF7HAgIeEIY6h2E0y1mF2hW7Z/S/P St0/dmMv395P1mySpJfBkBgfdzNYySBHKOgsWoBvgWoKPN6qnzoisC6rqRDY7WD0cwPy hITQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sXBor1Sa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re10si16684021ejb.140.2020.08.19.12.37.57; Wed, 19 Aug 2020 12:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sXBor1Sa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726816AbgHSThQ (ORCPT + 99 others); Wed, 19 Aug 2020 15:37:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:47876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbgHSThO (ORCPT ); Wed, 19 Aug 2020 15:37:14 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 283BB207BB; Wed, 19 Aug 2020 19:37:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597865834; bh=FSqnN4eyzzekQI8QmT0uMExpMLfdw+JltxvAtUnqXgo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sXBor1SafBP+oLCCppMCOKcFNPi3DJMASjl+uB1WLxVq7KRGp76oq08t+OSFzxmRZ jsIWryqeU+FGIDsYM0RVCrFLjT1KDQQhW54jBxl6Mq84LAYaouHYxHkS/veJJyMB66 0y74lEiqQ5QQOMPfIVEk8XRQBbGyjn9dmAo8JLoY= Date: Wed, 19 Aug 2020 12:37:13 -0700 From: Andrew Morton To: Cc: Christoph Lameter , Pekka Enberg , "David Rientjes" , Joonsoo Kim , , "open list:SLAB ALLOCATOR" , open list Subject: Re: [PATCH] mm/slub: make add_full() condition more explicit Message-Id: <20200819123713.38a2509a2b7651f14db33e61@linux-foundation.org> In-Reply-To: <20200811020240.1231-1-wuyun.wu@huawei.com> References: <20200811020240.1231-1-wuyun.wu@huawei.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Aug 2020 10:02:36 +0800 wrote: > From: Abel Wu > > The commit below is incomplete, as it didn't handle the add_full() part. > commit a4d3f8916c65 ("slub: remove useless kmem_cache_debug() before remove_full()") > > This patch checks for SLAB_STORE_USER instead of kmem_cache_debug(), > since that should be the only context in which we need the list_lock for > add_full(). > Does this contradict what the comment tells us? * This also ensures that the scanning of full * slabs from diagnostic functions will not see * any frozen slabs.