Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp678919rwb; Wed, 26 Jul 2023 00:35:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFMhfAWur0zfd6+Z8BLf0s5HlPZk+/Zl4H3RVtFYB4QplYTeu5adSsoVs7mMxBQF/Nub1H X-Received: by 2002:a17:906:74d8:b0:994:56d3:8a42 with SMTP id z24-20020a17090674d800b0099456d38a42mr1181369ejl.27.1690356955756; Wed, 26 Jul 2023 00:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690356955; cv=none; d=google.com; s=arc-20160816; b=y7VuKNGHIFhHh89RcKDaSNbL4aa76Xc9+zy+d8VOGMH1JBL0+9h4KQ7Pe+l7LTy6of 4ls+AxYKaFzP24VctVP1Lc+r78EyE4gnKLQJxJkp55E0cJKqKevr7hWiEgABdeCX4wj+ 4lFvtZJPtPOZTnC7BNJZcLhlDLaLUPoZzYFvtvMFkP8CUkeD6tLXaZ3fN0N4dYlwGnQP w//zAMcLrgECl/R4sznS+Ne89XjINx9ijD8LKMe6hfh8N09RmmGDDWRZB5cO+YEw8UFf FL6V43hBWTHy48BiMGoxSmbI07eJJ5B12B9xmlBSerXsXt6sZn1rmHKumJBG9M2O2AOy YC8A== 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=zvdjs6nZtoAJTeUNZnzlMBg+3W9EeQfEjhMJc2aooOM=; fh=ZiL0H9WxjkdaEYY2FPwSlldT8S+fsvH8OoCRhpNu428=; b=b+qgMlmbGi0LzEfvloMWc2KSUD256sIiPdZJ05rmwCGXRdUnvi0vTeHJpbAfXXL/Ct 1UXKbsxEFSURp+ohJHnjjGdi7wy3PWfrAU7JN/LHSbIjyBxkKsvvW4YQ2TDx4j+rA7OO v6/MhRjojxYGa86a0wgTGedXbdai3CPq9+qwjz2xZajFsZ9/JNTnpg2ElDCqXWc8Qk+A bNxyV5fwPCchl5EFadNV4jKrcRp4zwy0+RjfuhSqqAD+eRdcFF1OTyJ/DYw5l62NVzXf VnV9OodDyIGk1CBqwGuDdlzyV8P+wsy0+a+Yki9uMVcYvq2qxLhPtmg3jNA5ic9woxCh k54A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=S2kua2S0; 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 f27-20020a170906085b00b0099351214a94si9456390ejd.648.2023.07.26.00.35.30; Wed, 26 Jul 2023 00:35:55 -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=S2kua2S0; 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 S231526AbjGZH1k (ORCPT + 99 others); Wed, 26 Jul 2023 03:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbjGZH1H (ORCPT ); Wed, 26 Jul 2023 03:27:07 -0400 Received: from out-30.mta0.migadu.com (out-30.mta0.migadu.com [91.218.175.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5702630F4 for ; Wed, 26 Jul 2023 00:25:41 -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=1690356339; 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=zvdjs6nZtoAJTeUNZnzlMBg+3W9EeQfEjhMJc2aooOM=; b=S2kua2S04Evo6/UraSJyk1agL/DLGyhTxgzf2kveiPAUMLzy8KFKZaoPl72LwAbMUUU5KX yI90TImY1RmSccSZNS94f8DfCPZ1jkBAfVxRDDBOpVRhB+p5BTP1ltZuaxYaeg0c8hKX8y 9ZHbolk78fhzGoCn5zkqLPSgrNIAnzc= MIME-Version: 1.0 Subject: Re: [PATCH v2 25/47] dm: dynamically allocate the dm-bufio 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-26-zhengqi.arch@bytedance.com> Date: Wed, 26 Jul 2023 15:24: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-26-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-bufio 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 dm_bufio_client. > > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song