Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp705214rwb; Wed, 26 Jul 2023 01:08:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlHReNAQTema24XBqirhEDGmLojPS1tQTQqTa+KAEyZlw+IUTMkvFatrZ4BQTJ+yXs9RpIpx X-Received: by 2002:a17:902:a58b:b0:1bb:7b6c:983a with SMTP id az11-20020a170902a58b00b001bb7b6c983amr1290628plb.59.1690358927827; Wed, 26 Jul 2023 01:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690358927; cv=none; d=google.com; s=arc-20160816; b=QOtiIdjr5CqAwBbeRdPWLDkz/1lT66Zq+ovTh+M3yBwuuwjB+ot9zsQS2+YJK2E1Bu fpQ7v6EdMyjiUi9chjn15tVOIPjAzwdz2vtKr/RGTSZ1FJ0S1nhH71SZKoHjYZc2wxNV mikAeh5LR5ZGVmZXSouknPbeLd+sCx0nvO2ODCKCsHvrJteG+HdZwIOZKM6QoKJT9llu qtlZVQfCAHqHkCmNtT76dIjaWrRyWK3Tvb40GMVPCGH/fIiNghwr30CU9eA42e6BCV7i OrjzUfQLkhKkPyniN1h+QpsyTWID4oBZq9JvqMimlw+9HDG/jHb28Y+QYfSJyq9t0xZi 3zdw== 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=YERirZpLP4FYzC9W9Cuhwy4vJFALDqDsk3pczk62JOQ=; fh=ZiL0H9WxjkdaEYY2FPwSlldT8S+fsvH8OoCRhpNu428=; b=jQpewyOKF/e+AkpUU453bh1DScHataNAEOC0Rxg7M6Y42xbU2GqJXRlROfZusRr3Ur ZQOt7nRscnPe9Qt2BYQlq9CqhfnFVVGGsoCJ5GY+yW53SDpj03Ab1zWsdiBDLHMBSBG/ BVCPI1uiucM2kWmhoijFHXdfl812Eu/zbww35gA/gflWmCMm2iwJ+WzRLiNmEA2tuFoL 3zmLCf41YAS3uiYb4dAIf0yvYkdIqRS3I4VLt2Jd4Jn4/ZJRJX5Hj5r1L4KMLCIYe0k4 k9SrARsbJpsETuE1LXQbO9qzQP33OijVEmgfVBnDVHiNHpws86tAfOOwAiFsf3kgw9BZ ZlXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="kOMq/HUl"; 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 e1-20020a17090301c100b001b8a2774d60si13722923plh.486.2023.07.26.01.08.33; Wed, 26 Jul 2023 01:08:47 -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="kOMq/HUl"; 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 S231317AbjGZHua (ORCPT + 99 others); Wed, 26 Jul 2023 03:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232733AbjGZHtX (ORCPT ); Wed, 26 Jul 2023 03:49:23 -0400 Received: from out-17.mta0.migadu.com (out-17.mta0.migadu.com [91.218.175.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E08955A3; Wed, 26 Jul 2023 00:44:18 -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=1690357456; 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=YERirZpLP4FYzC9W9Cuhwy4vJFALDqDsk3pczk62JOQ=; b=kOMq/HUlDvH603KrUUEza/PyymEgyIbW/Pmz8Heb+hJF3i5dVIkpDD+1wHWXrClPqGAw2s a+xs9b+zND6HNviDHK0RhcBhFdy5suPaPW4D1t29z7ZNacrVxFACfaaCFl7IiD41gZEpbX ZxOTECTjTAugfJjk//XKlUEVfOYnzaA= MIME-Version: 1.0 Subject: Re: [PATCH v2 39/47] zsmalloc: dynamically allocate the mm-zspool 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-40-zhengqi.arch@bytedance.com> Date: Wed, 26 Jul 2023 15:43:36 +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-40-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 mm-zspool 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 zs_pool. > > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song