Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp847004rwd; Wed, 31 May 2023 06:19:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7tnUKrN6lBhGTPUITCJEzfNpPTv2Rpg50XI0CnjUgNzLexu+5t+4lH5AvP1nbp45s8cVzK X-Received: by 2002:a17:902:ec8b:b0:1ad:ea13:1916 with SMTP id x11-20020a170902ec8b00b001adea131916mr6566854plg.21.1685539146858; Wed, 31 May 2023 06:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685539146; cv=none; d=google.com; s=arc-20160816; b=VrAak/RjTf5pf0n0PBHjsDxHw3A9AoiCFax7Co+Adn05gp8aEFy6wr2Q2xl5ivL0Rd x/aFjpIwAHxjDiDcYspuSjr0TWaN5Dfwc9nkEUgov8qx4XDisth/5qWg3CAIv7MXIMse gEsfoaiyLKWkkais1B62ghNP+ktr3CgzqFDXIwy6F/ghlX3AHOs7OcpO+JHeU0ed1bcQ QanCI6xUN73+ihpPRpGZ57QKT3KkN8MsGj+jhBzp6AYP55hfb0Kc7ufldeSEaTUd/BEx Y6+al+nBBs/RkTK0cVKKjg3ZFivK3toPI8BYiyaevhi95VDKfd0sJqcURki8oYmLsTiC DOXQ== 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:content-language:subject:mime-version:date :dkim-signature:message-id; bh=2ShbrEgfZy4By4UohTrcklSg54xQgs+3EWdpTAp00z8=; b=ICjwu8pcc0JdjEJ+FKT+AWoYGn6FFJnvuDbHhhFFc1mURjTt7dHbAAzAzIgHzQ4Uhc 5OFjDXRq3YUfelEGMjo3FB33G3D5yliKEK4e0eACsh0VBglE6C1BEyg/IlCtz5CF5myb FDHrwXIM5CQuKiYv0XG+aeOi/7Udli9OcJaLR9pco/stFChhPHjn18tw/Z5KcSwQDfo0 v8c/+dN4jFt9moaK4UZztbE8S9x8fPZd3+bUak68xQZpGnYSQ4PlZ1cHDApj8yrNgYyh uDOt5Lvy/Ud/sGPmxXbIr083y05xhmdW6iZQ2E9A6uhUgDGyWa2ZdbXzkZ/IG7jFfp2y p42w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=dw0p9yEq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 a11-20020a170902b58b00b001b058f1c420si649984pls.564.2023.05.31.06.18.53; Wed, 31 May 2023 06:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=dw0p9yEq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S236010AbjEaMyU (ORCPT + 99 others); Wed, 31 May 2023 08:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236026AbjEaMyR (ORCPT ); Wed, 31 May 2023 08:54:17 -0400 Received: from out-6.mta1.migadu.com (out-6.mta1.migadu.com [95.215.58.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE42136 for ; Wed, 31 May 2023 05:53:55 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1685537575; 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=2ShbrEgfZy4By4UohTrcklSg54xQgs+3EWdpTAp00z8=; b=dw0p9yEqwoJ68IFZtmHffnZ4wp5USwQvnVqn94n4syCGENhdaRtT6IT3dXPhuhB7GeFZby EAm7yyWAoZ/WouPfjlyTwCg8ijHHlTofAXILbmW8dr+3eq6i1kiBqjx+Bf12QjXhBPbBb7 iUpHJKOu/PagvVxpglm0N+Kntq3mIHM= Date: Wed, 31 May 2023 20:52:46 +0800 MIME-Version: 1.0 Subject: Re: [PATCH 1/8] mm: vmscan: move shrinker_debugfs_remove() before synchronize_srcu() Content-Language: en-US To: Christian Brauner Cc: akpm@linux-foundation.org, tkhai@ya.ru, roman.gushchin@linux.dev, vbabka@suse.cz, viro@zeniv.linux.org.uk, djwong@kernel.org, hughd@google.com, paulmck@kernel.org, muchun.song@linux.dev, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Qi Zheng References: <20230531095742.2480623-1-qi.zheng@linux.dev> <20230531095742.2480623-2-qi.zheng@linux.dev> <20230531-notlage-ankommen-93022623b74b@brauner> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Qi Zheng In-Reply-To: <20230531-notlage-ankommen-93022623b74b@brauner> 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-kernel@vger.kernel.org On 2023/5/31 18:49, Christian Brauner wrote: > On Wed, May 31, 2023 at 09:57:35AM +0000, Qi Zheng wrote: >> From: Qi Zheng >> >> The debugfs_remove_recursive() will wait for debugfs_file_put() >> to return, so there is no need to put it after synchronize_srcu() >> to wait for the rcu read-side critical section to exit. >> >> Just move it before synchronize_srcu(), which is also convenient >> to put the heavy synchronize_srcu() in the delayed work later. >> >> Signed-off-by: Qi Zheng >> --- > > Afaict, should be a patch independent of this series. OK, will resend as an independent patch. Thanks, Qi