Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp711787rwb; Wed, 26 Jul 2023 01:17:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGcCNypdkMdGcMQtZhnQtuczdQqlR/asnh0cWO5heTGYAUlTotwDt134gKZHR0Vp2UuhGn X-Received: by 2002:a17:907:7809:b0:991:e24f:b288 with SMTP id la9-20020a170907780900b00991e24fb288mr1262737ejc.26.1690359443258; Wed, 26 Jul 2023 01:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690359443; cv=none; d=google.com; s=arc-20160816; b=T/j5XjReJ9at3V6r6h6FaXAEyLhZqsaBkXCQBlFv6yrU/NK2UhX7UJ1buNmCaufafv 1L20/zXn+0HHVd5RA4dvSrbWxSHmyk7JKpTFooVM9UJFPfkpXzwhGuIQlDpV1GFTUFRH haWte+wXX+WWjdJN0RCJ3762D12CZtjCtqxPbiECnWs1UiJXXNSAxsW4qOM3PkRZ4+Q7 VZSqUXLcB0aC2bxadUF5lXjRcsVthdmuQzznZklRFzAtHwgESvE2In24QlsgeKjKdNwJ aVmnCfHCKUNVV6aJqMwol3QiaxVqtxBU433N33UriUljMyMqkC7x0X1tB9xXCfT2kVKe Guzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:mime-version:date:dkim-signature :message-id; bh=6QEBEdTPSAaW2OQqcLE7rLGuRZIVN6+LeTsJ4l/CyeM=; fh=2aXCQdnPCRGWbb3+3TWBb4ivLG2Pbs4VxrYTn6yMgTk=; b=nLwpHP6GrfbpuY/1U8dATdE0nipELQ+J27m+DNF7jSXbQR4M715MUvWYR/KC/ueMIE Z2Y/OzqtNezvuD1qyeOOob9MT92MoAGP3g2WaDi1twXlmhwnAXzSfHGoQpFfUE3Am+O4 QJ3EvFr0mVekEUzQ/79seffIIYI8MBDw9JhR8hqEQ/f2CNKYivWabBztAqKuXUbm2Azi dyO37Vx+XQKRm24D2Ci6beZlAq5fJqZBaPtsKTWvuO6NYVoMaNfO9ZYsaUrJnEs+4cHi 0E4DgAogjYRxfmnCmE8JQ5J/LzS71AhmCwuQCykaXJEfCK6YyGGKzK2wRNueGyCh+WCe mMVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PIFD02mp; 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 s9-20020a1709060c0900b00992feaebee8si8970809ejf.943.2023.07.26.01.16.59; Wed, 26 Jul 2023 01:17:23 -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=PIFD02mp; 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 S233009AbjGZHwt (ORCPT + 99 others); Wed, 26 Jul 2023 03:52:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232950AbjGZHwN (ORCPT ); Wed, 26 Jul 2023 03:52:13 -0400 Received: from out-9.mta0.migadu.com (out-9.mta0.migadu.com [IPv6:2001:41d0:1004:224b::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318071738 for ; Wed, 26 Jul 2023 00:46:15 -0700 (PDT) Message-ID: <2eb5ac60-d03f-c770-144c-67c23337a899@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690357574; 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=6QEBEdTPSAaW2OQqcLE7rLGuRZIVN6+LeTsJ4l/CyeM=; b=PIFD02mpMzjRcZ3366WsMtp53hA717Gy3vvuYw5Rhd/AopVnoI+xS2zEoD80dtXmig5iVU e+udj9BpG++3X4I7Xha4OWZFfxbVXmw3wbp6r/NHzIwAOXaSD+OnSfxRqvRN624pP6oj8J xGsejw6XWW8uEiG+p7ecCRE5blMqFKA= Date: Wed, 26 Jul 2023 15:45:56 +0800 MIME-Version: 1.0 Subject: Re: [PATCH v2 40/47] fs: super: dynamically allocate the s_shrink To: Qi Zheng Cc: 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, akpm@linux-foundation.org, david@fromorbit.com, tkhai@ya.ru, vbabka@suse.cz, roman.gushchin@linux.dev, djwong@kernel.org, brauner@kernel.org, paulmck@kernel.org, tytso@mit.edu, steven.price@arm.com, cel@kernel.org, senozhatsky@chromium.org, yujie.liu@intel.com, gregkh@linuxfoundation.org References: <20230724094354.90817-1-zhengqi.arch@bytedance.com> <20230724094354.90817-41-zhengqi.arch@bytedance.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230724094354.90817-41-zhengqi.arch@bytedance.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 2023/7/24 17:43, Qi Zheng wrote: > In preparation for implementing lockless slab shrink, use new APIs to > dynamically allocate the s_shrink, 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 super_block. > > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song