Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp711366rwb; Wed, 26 Jul 2023 01:16:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHVjsVYaBTDcEhQrFGI00rkHJi0xUZ0E1qz8uvDYkd0h2xvc4nYn7ke3FnrEpy+Vhifw6D6 X-Received: by 2002:a17:906:221a:b0:994:54af:e282 with SMTP id s26-20020a170906221a00b0099454afe282mr990818ejs.10.1690359409717; Wed, 26 Jul 2023 01:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690359409; cv=none; d=google.com; s=arc-20160816; b=zvJa0emIhyv+Ikta9yZfMDIxNgsK43/aEy7oSItwKtT+MFd3ES1oTWd0xA9GpxyOyT 8s5gOzmW8I1AOaWGmKRMygGsW7NogVODCYH6YIHtSHfNPwjeY+8HJPmQS3w1XyURBcbK 06fWypYHwqE7rKM3u3gwIbIJ4wsfVShIJA/uGqrYEYqlX65mhw/QRa+VFvhvk3lOnsng Ba/H70CLFjXsd1IGSDJVDaT8tj1yRqyE2PZiXzCC0Oih2gwVrRBbEVyyD+PjkdbQs7aI DgjmPVU1nlYTogsEs2RE1bxT3uAIe6Oz2KmRdvZ93vQOHXZswJ1LP7Emup2EHWjnxInY FsfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=kddOZo1OB/dnx2Sd2Hp9HvVcJFH2vK8XN/l3RDrCzYA=; fh=G5Ivpgr6jpacEdHMoxfoNLtYLWx4G+pEaINoSx6siHM=; b=v0TvmBJBBwjLUz6Ed4WgWXF0O5JobVCaA19UyHHlQZgTJkjExSUg/91N7oQuYLfC+n YmfoAOnhc7hbE7KvYK+2tAm7Lq9spE4kyr1XqOvqYAzU1t4AGeTNB6LkL4XSB3y0GKB5 D4S3BBbMQgnZ6ApNnfwB2wOlcoHOXFIQPrSX7tyFHm3jiLiCkrXjEZGoKuTh0mHar5xu qGw3S2SgnGeZm7j/ncjlu9o41auiXi4sUIxKdCmzza9cWa00HQwcDV/RVHk56eGmcGi5 SXw5o563SA6jCgbhAdlQQV8Se0SyU0no7aydPTN5AOrXOWfK2CBGtCDyEBrRgf+KrcFB yj9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="a/sL/5lB"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a1709064f1000b00997bd26a560si9599379eju.938.2023.07.26.01.16.23; Wed, 26 Jul 2023 01:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="a/sL/5lB"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbjGZH3s (ORCPT + 99 others); Wed, 26 Jul 2023 03:29:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbjGZH3P (ORCPT ); Wed, 26 Jul 2023 03:29:15 -0400 Received: from out-7.mta0.migadu.com (out-7.mta0.migadu.com [IPv6:2001:41d0:1004:224b::7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F00372D59 for ; Wed, 26 Jul 2023 00:27:56 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690356475; 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=kddOZo1OB/dnx2Sd2Hp9HvVcJFH2vK8XN/l3RDrCzYA=; b=a/sL/5lBqKAXrNPPoGDoF4xs326hzfVSG6fDcE24LmH82hZ/SqypmSeuU9lQJ3KTx+xcp1 7al1E8o2xtQTLBYQCCJl5EzU27s8InsUsoNIWntcSz8ycucQarnPdtrwtOYnknCdh1RCgu fJXvZ2Nwuby67i5oc/L72SWSvxqIPXA= MIME-Version: 1.0 Subject: Re: [PATCH v2 27/47] md/raid5: dynamically allocate the md-raid5 shrinker X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230724094354.90817-28-zhengqi.arch@bytedance.com> Date: Wed, 26 Jul 2023 15:27:13 +0800 Cc: Andrew Morton , david@fromorbit.com, tkhai@ya.ru, Vlastimil Babka , Roman Gushchin , djwong@kernel.org, Christian Brauner , "Paul E. McKenney" , tytso@mit.edu, steven.price@arm.com, cel@kernel.org, Sergey Senozhatsky , yujie.liu@intel.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, linux-erofs@lists.ozlabs.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, linux-mtd@lists.infradead.org, rcu@vger.kernel.org, netdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-bcache@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <8A1603B9-570E-45DE-9597-90C3E2825A7A@linux.dev> References: <20230724094354.90817-1-zhengqi.arch@bytedance.com> <20230724094354.90817-28-zhengqi.arch@bytedance.com> To: Qi Zheng X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Jul 24, 2023, at 17:43, Qi Zheng wrote: > > In preparation for implementing lockless slab shrink, use new APIs to > dynamically allocate the md-raid5 shrinker, so that it can be freed > asynchronously using kfree_rcu(). Then it doesn't need to wait for RCU > read-side critical section when releasing the struct r5conf. > > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song