Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1071744rbb; Sun, 25 Feb 2024 18:43:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXx++ZbxKEnGUDc9zUkDpI9oP5WIJwjWw2N7BonokC35HT9eQ+rlNlUZJUsNh+aMBoyZ4ZzhTFewwA48SObqnAIdIOo73NXAZi4Fc4LhA== X-Google-Smtp-Source: AGHT+IFHSt+9PybN3rEO9khtU7gyqJ3BzkAV/B2jr/9MPUtB4mRXc9M6KsxZlZd/GJEkdnbItxzT X-Received: by 2002:a17:906:1ed7:b0:a3e:dfce:daf0 with SMTP id m23-20020a1709061ed700b00a3edfcedaf0mr3834820ejj.39.1708915391117; Sun, 25 Feb 2024 18:43:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708915391; cv=pass; d=google.com; s=arc-20160816; b=Ob4Q4eHisiNsXrHk0t7ENnzi2bkHcBoLxDhu4cwwXW6NK06XV7A5YgnLRIgYJqwiLV rrbVsMgTRhebcDss67G4T1VUkQ1pkfOcnPG8AP0xirRpmdcCqHubRvjo7TSb472E3WoU FRTJCugJWXJFDi8nP+IRr9+t1yWZN3F0qr/BqZxgBFDhFsIXjr3d0oEh1qvqsoFKxcu/ L21y0tDhBIpK3m0Jjbp2mFGj5qFycCPOY53jXn/EGKl0k9xYaNyAXHUxnLfqhUYrD6+/ CjaGEF8dn5+OQbSSUtErKmT/9rIoW0nPXt1HipSKC+MoBXnh3pNqLNBcW7REXYJqbB1E qCmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=C2IqjWh/yWi1m79mN9dV+v0YZlblGMbjVM2Q3IOYH54=; fh=2D/KWe5yccGOY++3IXmIAyw8EllLqCbvPL3lDYrrMS0=; b=AKy2N8t+MX83HJDbP6cNj7A4+BZQRFdqTvb8SoI5lqaSXOK7rCewUlkJu0bRmQNdbo O0HO1ZnZpcp2gz4yB9z0jGAkd8EpP0A+994qG+nu8aw360vy80Xm86EivTO4J0Wq4U4u NtEB3hbu9SJqpfFsaaK1ZDl/oVm/Q5MB63hxp2jR1M9+PZ3zTB7GXbrpUyMencyFTQ2q PwhRgALZtbG9/6dami6SdZAMRPs1mI35N50smgEaZlkCcR1kQOTZARVU8vAh+/LGn5GX nVAD0XKC/LhTwAc0Fsmhrpcu12ydKVAQYxKG4RWBYgWkRIBlM57u7xbfIQ06YyvHN1Rz dGmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=bFjm+vRc; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-80418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qb31-20020a1709077e9f00b00a3d296f46bcsi1771099ejc.806.2024.02.25.18.43.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 18:43:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=bFjm+vRc; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-80418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DE8F21F21B48 for ; Mon, 26 Feb 2024 02:43:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7D5C101C3; Mon, 26 Feb 2024 02:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="bFjm+vRc" Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15C06EEDE; Mon, 26 Feb 2024 02:42:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708915382; cv=none; b=lnyPRqJStt3v3Rw+vN9AbtVFGmFGGItYT2NDbDtA0NNYiaHvrpE6S37wSNsOjZZnqgX0w7w32hryXu7PmtVuAjPo0wZNqxfqwhepfwUsaZ4fzIaFsgNYrzyvTeElQZQEdO17QfwljUuzqQ+jfqP2unpXiAPVxXnwjOIoi6dhTQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708915382; c=relaxed/simple; bh=2lrCQXoWic/lvZYvaJPQ+wPoytEO7esJOR/f8mwfX7M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=o0I91Bis8j12DbraWrU6F3zmZyy0Ie82m1TPKwkmoDajLj0wiwF94Nxk6tLb83Kch3N05tsTmUnwWe5OptI82rQ3wbn4mqcVeYJSHRX3YJ7hA6EUY14irSAZDUrrzQ9pyijHviM6YIhBZe0C11ix8rBUIgEvlivoz9BzoECBjxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=bFjm+vRc; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708915377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C2IqjWh/yWi1m79mN9dV+v0YZlblGMbjVM2Q3IOYH54=; b=bFjm+vRcwNAtPWIpm6XptVUfBkkdjZv+25Ep9G6sX9r6KFFQB87NTpRlbyYXzkys+APTEZ wby50uKxS+kra1tcTtwwYRz+2+rj34wrnn6dvN6+dDALXzGoob2NpGB7GMqgjbKNnRkwWP G12RenC4deP0/e9e9BlKywLPj5jXa/Y= Date: Mon, 26 Feb 2024 10:42:27 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] ceph: remove SLAB_MEM_SPREAD flag usage Content-Language: en-US To: Xiubo Li , idryomov@gmail.com, jlayton@kernel.org Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, vbabka@suse.cz, roman.gushchin@linux.dev, Xiongwei.Song@windriver.com, Chengming Zhou References: <20240224134715.829225-1-chengming.zhou@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 2024/2/26 09:43, Xiubo Li wrote: > Hi Chengming, > > Thanks for your patch. > > BTW, could you share the link of the relevant patches to mark this a no-op ? Update changelog to make it clearer: The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was removed as of v6.8-rc1, so it became a dead flag. And the series[1] went on to mark it obsolete to avoid confusion for users. Here we can just remove all its users, which has no functional change. [1] https://lore.kernel.org/all/20240223-slab-cleanup-flags-v2-1-02f1753e8303@suse.cz/ Thanks! > > Thanks > > - Xiubo > > On 2/24/24 21:47, chengming.zhou@linux.dev wrote: >> From: Chengming Zhou >> >> The SLAB_MEM_SPREAD flag is already a no-op as of 6.8-rc1, remove >> its usage so we can delete it from slab. No functional change. >> >> Signed-off-by: Chengming Zhou >> --- >>   fs/ceph/super.c | 18 +++++++++--------- >>   1 file changed, 9 insertions(+), 9 deletions(-) >> >> diff --git a/fs/ceph/super.c b/fs/ceph/super.c >> index 5ec102f6b1ac..4dcbbaa297f6 100644 >> --- a/fs/ceph/super.c >> +++ b/fs/ceph/super.c >> @@ -928,36 +928,36 @@ static int __init init_caches(void) >>       ceph_inode_cachep = kmem_cache_create("ceph_inode_info", >>                         sizeof(struct ceph_inode_info), >>                         __alignof__(struct ceph_inode_info), >> -                      SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD| >> -                      SLAB_ACCOUNT, ceph_inode_init_once); >> +                      SLAB_RECLAIM_ACCOUNT|SLAB_ACCOUNT, >> +                      ceph_inode_init_once); >>       if (!ceph_inode_cachep) >>           return -ENOMEM; >>   -    ceph_cap_cachep = KMEM_CACHE(ceph_cap, SLAB_MEM_SPREAD); >> +    ceph_cap_cachep = KMEM_CACHE(ceph_cap, 0); >>       if (!ceph_cap_cachep) >>           goto bad_cap; >> -    ceph_cap_snap_cachep = KMEM_CACHE(ceph_cap_snap, SLAB_MEM_SPREAD); >> +    ceph_cap_snap_cachep = KMEM_CACHE(ceph_cap_snap, 0); >>       if (!ceph_cap_snap_cachep) >>           goto bad_cap_snap; >>       ceph_cap_flush_cachep = KMEM_CACHE(ceph_cap_flush, >> -                       SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD); >> +                       SLAB_RECLAIM_ACCOUNT); >>       if (!ceph_cap_flush_cachep) >>           goto bad_cap_flush; >>         ceph_dentry_cachep = KMEM_CACHE(ceph_dentry_info, >> -                    SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD); >> +                    SLAB_RECLAIM_ACCOUNT); >>       if (!ceph_dentry_cachep) >>           goto bad_dentry; >>   -    ceph_file_cachep = KMEM_CACHE(ceph_file_info, SLAB_MEM_SPREAD); >> +    ceph_file_cachep = KMEM_CACHE(ceph_file_info, 0); >>       if (!ceph_file_cachep) >>           goto bad_file; >>   -    ceph_dir_file_cachep = KMEM_CACHE(ceph_dir_file_info, SLAB_MEM_SPREAD); >> +    ceph_dir_file_cachep = KMEM_CACHE(ceph_dir_file_info, 0); >>       if (!ceph_dir_file_cachep) >>           goto bad_dir_file; >>   -    ceph_mds_request_cachep = KMEM_CACHE(ceph_mds_request, SLAB_MEM_SPREAD); >> +    ceph_mds_request_cachep = KMEM_CACHE(ceph_mds_request, 0); >>       if (!ceph_mds_request_cachep) >>           goto bad_mds_req; >>   >