Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp710612rwb; Wed, 26 Jul 2023 01:15:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5TPPk+BsUN1Jer7bqbWH6pNRWylXcPC7uJSejBJyCvVWXakdKLmjv+2HbeHOSMLWbNaaL X-Received: by 2002:a17:906:2101:b0:99b:b0b2:3f9 with SMTP id 1-20020a170906210100b0099bb0b203f9mr1053847ejt.2.1690359349323; Wed, 26 Jul 2023 01:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690359349; cv=none; d=google.com; s=arc-20160816; b=ioTzBRxZPX/bNC54JjnsZBgxEitnDqLW4Oyi4oyg2LCRdU7U1CLsQm+axyOEuL2jmm uJ1KIuMAM+V/ZvRHdw2/suzACXIEcLKAAwcsjtZbvEBG1LD3j8u6oko6ArvPUVHa9iHB Fu6yzyLVG79827u3VXZHYinojeJ3SjOs/fihhgNLaX80l6DvcYdnm45wPSo1WOeaLr4e keFrBuFhr+1+pqqJotaycfMBj64/e+KcMtWhivKAM7Ur2m1z+M95fKvMyGOrfl1KvPKR Y6zCc7NAQuxGB5zguuYF73il9BCcIqL7GJmS8dLrNZ7pOnpFVItj4wq0emJ/BGc5t75u vDUw== 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=1INRpyFGosC7x9b2U65MfTc+prZG/Zt8kNIAIpUXzvc=; fh=ZiL0H9WxjkdaEYY2FPwSlldT8S+fsvH8OoCRhpNu428=; b=uY2hevCQQtCuOGyPwtXudR3cXaiJQCzas7wvXoPGRP7p0POLzq2D/Hu0v/6E6MRVLa RKWUd1sZUhjym+KTH3SHL4OfZHlboB78rQgp74Pwjg9hiGRs0mV+RgPtuTskPVlSe9x5 Vr4fQM7QmT24xjDmHGhI+szTSnM+WRsarh9oSsmgWounmtArdsmmm8KT+AcBMbhTYMS2 Nwle5Qn/jCZ1pK9SVr5N/tGbc2X4Nb3AoYMzKUe2EDQLC9uJnfXcmyra+G9bKBFRuTeV msQQCov/ztxXmhATSb9nNCbg++ImFa5RznV9ih55uP5wGIQVEEzfJUbcJkkkcRWLAeW2 TLrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="rJayuXz/"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 q8-20020a170906360800b00992b63c9f9csi9209062ejb.456.2023.07.26.01.15.24; Wed, 26 Jul 2023 01:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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="rJayuXz/"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S229562AbjGZHqg (ORCPT + 99 others); Wed, 26 Jul 2023 03:46:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232505AbjGZHqJ (ORCPT ); Wed, 26 Jul 2023 03:46:09 -0400 Received: from out-58.mta0.migadu.com (out-58.mta0.migadu.com [IPv6:2001:41d0:1004:224b::3a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E7A04ED6 for ; Wed, 26 Jul 2023 00:41:43 -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=1690357301; 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=1INRpyFGosC7x9b2U65MfTc+prZG/Zt8kNIAIpUXzvc=; b=rJayuXz/AZIoTh/aJ821z2UtGYXRhf7SaFISnV6xdmFmcSOAugz50dRL7nxfhIEtCQbOTg iIpArugvYTdRT1OJGdpeURT9QNHUnNNwNxIZAZlJQKpbcVUfBLkRuPek5FTrtrIzUA92Qs V5aiV1ZbRn27rBgCbBkAjrHv7ewFxNg= MIME-Version: 1.0 Subject: Re: [PATCH v2 32/47] ext4: dynamically allocate the ext4-es 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-33-zhengqi.arch@bytedance.com> Date: Wed, 26 Jul 2023 15:40:52 +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: <866DDDA8-3F7E-4E7A-BA8D-D6DA1707E106@linux.dev> References: <20230724094354.90817-1-zhengqi.arch@bytedance.com> <20230724094354.90817-33-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-ext4@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 ext4-es 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 ext4_sb_info. > > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song