Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6385701rwd; Mon, 5 Jun 2023 17:56:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TlrtS5Xlm7gVSanzIE3COXsFh4V8Fr6TpbO2Bcr7b7+mvLDkZdavVUiKdcGMxLg0pRelR X-Received: by 2002:ac8:7f12:0:b0:3f9:7251:3101 with SMTP id f18-20020ac87f12000000b003f972513101mr656974qtk.8.1686012986649; Mon, 05 Jun 2023 17:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686012986; cv=none; d=google.com; s=arc-20160816; b=ToT/7rpG4O9pyT1ABGh52Idomu+glzPd4fO3jmy3SI0MAfSFwjbxfHolk3kHCbW8g7 +to1JP10lfO07dhxz/t8SRc7M4nMturxdTYCMd2Ef+2UgOWfB2xg8UrVfwWMWig6Bj05 8vFgGKPjoChQekHFludgeq4SbwrE5e/iVw+SX7k/FU/zgv3DIE315bzk6gga6jksn0HI duJfE4C5P8HQz5hmAByeGzY8KKs1+XPCPg3asfnMQz+DMg9ADfslITIWggkDbCwHx9ZQ sRPughV59LKRUkroXXUYJnSlMkLXCu9aYlQmnH7PPC7Y/54LzX3GfBih5AUUlKFyi0f2 wrmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=xFxQoxys/4W09oOn79IrUnlR3rRwAPSSelAzub4DB3w=; b=csjCrnE0MU6Mze2lWiz12IYz3gk8BlyWYXs6LVzCSw4ahPTMc/F8huXYOFHn33tSrI NjDdVYRXmH5CUR16D6GDuez97KDklcByMjY98/MFatD0kaXFC7Pd5bljBHZmllRKm38P TAJpYu35j6IGACyzMzGG8uCKXPLDyA9KHuiK4AigpRorviJpJVzr/lpEArDWukQ/6KbW MaxWOHfbMIWO6WEpOgeotDVzq+NgHreOhXfEoIkJ2Pry+HbQxMhvStuyIxTZFkI6B9j4 QdoRbLuQ3LYStWx8N1iXSiiYEe4e0jHcavVfEjYaWTVx3VNUrnVYbh08WaZoXFAqcEwE JuUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=GYrJ2HdS; 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 d21-20020a637355000000b00542d2508ac7si4673611pgn.200.2023.06.05.17.55.53; Mon, 05 Jun 2023 17:56:26 -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=GYrJ2HdS; 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 S232200AbjFFAcG (ORCPT + 99 others); Mon, 5 Jun 2023 20:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjFFAcF (ORCPT ); Mon, 5 Jun 2023 20:32:05 -0400 Received: from out-30.mta0.migadu.com (out-30.mta0.migadu.com [IPv6:2001:41d0:1004:224b::1e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43974A6 for ; Mon, 5 Jun 2023 17:32:04 -0700 (PDT) Date: Mon, 5 Jun 2023 17:31:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1686011522; 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: in-reply-to:in-reply-to:references:references; bh=xFxQoxys/4W09oOn79IrUnlR3rRwAPSSelAzub4DB3w=; b=GYrJ2HdSX3TJoTTxPDFkm2BYLmg+7hl/gvwOi01e4oASj1BbnqDK7qwyHcvL6fJ/DORzXc eFEH9oIjheaYl2N4nSF6/5HcGLZd1A0fCZQFeeh3w+9qe2j/ZdHFiq8CiAqMdCrXPTFYV6 wr5AogFPjClIdSqmxJBsaSWiXGHZKRo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Kirill Tkhai Cc: akpm@linux-foundation.org, vbabka@suse.cz, viro@zeniv.linux.org.uk, brauner@kernel.org, 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, zhengqi.arch@bytedance.com, david@fromorbit.com Subject: Re: [PATCH v2 1/3] mm: vmscan: move shrinker_debugfs_remove() before synchronize_srcu() Message-ID: References: <168599103578.70911.9402374667983518835.stgit@pro.pro> <168599178203.70911.18350742045278218790.stgit@pro.pro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <168599178203.70911.18350742045278218790.stgit@pro.pro> 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 Mon, Jun 05, 2023 at 10:03:02PM +0300, Kirill Tkhai 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 Acked-by: Roman Gushchin