Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp706246rwb; Wed, 26 Jul 2023 01:09:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlF0gUh/ZCP/SnD4EwwC4vzcTprYnMcwLG3udvaDPbcw6z4482jFRuFaN2CJEQtX7ejuCnv+ X-Received: by 2002:a05:6a00:198a:b0:67e:5edd:e6e7 with SMTP id d10-20020a056a00198a00b0067e5edde6e7mr1412039pfl.9.1690358998845; Wed, 26 Jul 2023 01:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690358998; cv=none; d=google.com; s=arc-20160816; b=m5OycBEUkdK1a8DaUKpNocD4/qylH87nxGXedCXWbbNdYgjEwWnvwOEF5tQDyLX4s5 hEhBFUQY+/ChbQNGwi51R4g6WVYcUQQKrKXZaL5HWs0Y8/4ScwjanGkBWioQ0RNbfQAD z4+/nVLhDE+Obm3SiW8hqj9Esz2AvhAOfkJuXCSfdvHioX+EKvnA9BXRHkJZ49BdSN+S 9iUtGHrdl4a/ZSiEk8mnGUbmyD8+J2J9gUw8Zw2Pi6r8MWG52rCjDVcmUPAGTOeN7DzL yKL5EQr3DVJeaSVfNjsIbpAJxC7xkoz+IxB9taUITibUk19tu6Fz1rYWutMjNTkC2kJU 2BYw== 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=x/YPwJU0rwLy+AuHnuxjdCUhH1EzE6WkopZ0kgAJ1Qo=; fh=ZiL0H9WxjkdaEYY2FPwSlldT8S+fsvH8OoCRhpNu428=; b=SWEp7iTqzM5cE0047Fc1ZZ8qGUAkqlIP6yzq8SK8opD9ggWLuaztnmWKsI6W1UWEsG eirWrVOm07XPbLPNSgto3+qBgsk3Kx6mMcuamwZR3/lmDjLNk+iUjX3j8MBZVd6NZxV+ Z6hxYuzccN63nnIOqTNASnqLRZccjePVzvQtK32L28Oa3rBVVI16LY8B63aCQ0VdpgEn Jm4ioVNK1/hxvmnuLlee3T1mIzwbQckWGERbFXhJy3iNlYkrWjB+lYOCJmPtA+IA2O2c TVRsOXN4X/dqvQzoxirRYahCaU3YWlol0dBcEgyM+tLYEY00am+ii4+DH2q3mvhFbe+f 0yuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="UA4cvi/G"; 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 z8-20020a637e08000000b0054fe4a4f66bsi12811457pgc.61.2023.07.26.01.09.45; Wed, 26 Jul 2023 01:09:58 -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="UA4cvi/G"; 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 S232279AbjGZH2v (ORCPT + 99 others); Wed, 26 Jul 2023 03:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232707AbjGZH2G (ORCPT ); Wed, 26 Jul 2023 03:28:06 -0400 Received: from out-47.mta0.migadu.com (out-47.mta0.migadu.com [IPv6:2001:41d0:1004:224b::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BF684214 for ; Wed, 26 Jul 2023 00:26:47 -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=1690356405; 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=x/YPwJU0rwLy+AuHnuxjdCUhH1EzE6WkopZ0kgAJ1Qo=; b=UA4cvi/GGMdckJQ6g4p3+u38P404cT3MaC3q014wQwvll1a4nrZdfsP6/l2xBOvqxQBZnG /GB100BFGEJn37pYrEcJWPkcPwCehM0mCMv1erArHez8P+wU/wx/xg2YNYRHWyz7GvCoJN LWY2Z8xIEtpCzuJK57wk7wbFhJGlyYE= MIME-Version: 1.0 Subject: Re: [PATCH v2 26/47] dm zoned: dynamically allocate the dm-zoned-meta 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-27-zhengqi.arch@bytedance.com> Date: Wed, 26 Jul 2023 15:25:47 +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, senozhatsky@chromium.org, 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: References: <20230724094354.90817-1-zhengqi.arch@bytedance.com> <20230724094354.90817-27-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=ham 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 dm-zoned-meta 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 dmz_metadata. > > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song