Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1495104rwd; Thu, 8 Jun 2023 20:04:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mzDvWj9gsjvLc8UiIHoBPtFipmSEfqOS9trm34nEzWR8oXWBWYrVqZnLpY4YvLtOtGcfK X-Received: by 2002:a05:6808:2097:b0:39b:7ba7:bd1e with SMTP id s23-20020a056808209700b0039b7ba7bd1emr472119oiw.11.1686279845415; Thu, 08 Jun 2023 20:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686279845; cv=none; d=google.com; s=arc-20160816; b=PvtaUtozBPRjoKQIsGp7i+T+yKxqf+gq3BZgsnzO220wmAR2t9WUm176BTAszMB87A r1TrYypzSkM7vuyJpnsHHt4t7GwOW84M/RbLYXHTRraT/UI/TUQqgDtJ1mB+ZH71SEtx yHmgJD5pJTtenyUYjI3d0F4KGcq/xrpq7PPLw6Lt0rhV7fmFLKLD2DtDLOS6NWUbqQiX tnPBL7+frlhVyUf6CDMPkS1Th6R1SVHXduU8o+zjkQtqRMmnk3iCz/5fIYyxrtKVENPr 9qqolJPhpyPby6wUjkR/pD2fQ4D7Wl365j2AADLbhfskNAC/dr/CumZ33IbjXJUBG8zk eWUw== 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=91kh3tFTkOaJY25bw6pXpjQkW2Fhj7YHRJnvq6DamMc=; b=Ak580ggpWreNF6OKVJWzp9r23if7XimiYk7PeWi0bD+8JgLa9DvK9wt+9I9GfLybWb ut219P8ing9WpHsiSjoeUVhAl5MPiQ/XX+Wfk1BNoI6gxrmyflVoNMXeDdS+REtQZ2ux bZvv0wRfx3gUjnl92bmu1UTI7pVdJfynMn4M/jJ9z1Pp56EvFs6uuUha6HXgAq3NKMzR mIhCFuFDuf0W6i8M4Vv1jVDXHaA1FHVSkui0SMo5sjl8kulSALpngfcQhZhspS1UzELp I/MECrA9N4oJ0JErs2BRaBEmky6IFhaQ6FjeWnyqq6MRKY17yYbdciIiTfiuKxdbKQpn GNSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=erezWzub; 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 on7-20020a17090b1d0700b00256ba93c131si2109730pjb.4.2023.06.08.20.03.50; Thu, 08 Jun 2023 20:04:05 -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=erezWzub; 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 S237833AbjFICu3 (ORCPT + 99 others); Thu, 8 Jun 2023 22:50:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231177AbjFICuX (ORCPT ); Thu, 8 Jun 2023 22:50:23 -0400 Received: from out-9.mta1.migadu.com (out-9.mta1.migadu.com [95.215.58.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29C630E7 for ; Thu, 8 Jun 2023 19:50:21 -0700 (PDT) Message-ID: <51cbf269-daff-d7b8-653f-7ba388475ab8@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1686279019; 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=91kh3tFTkOaJY25bw6pXpjQkW2Fhj7YHRJnvq6DamMc=; b=erezWzubfqiZyyNGaggPMzlGAh3FNfUsfyDunUTfYykraWAIkxCErvgXdbuVdw1qzSe8qq EamnuObDnVO4mFAHRfhGBw6GuXs8e2NxsBEBTllWy9ubHmkTZapeoixstE8icZjHe5r2uO lfmT682R9NhjDHhUHvZ6z1e7CXr5/FU= Date: Fri, 9 Jun 2023 10:50:11 +0800 MIME-Version: 1.0 Subject: Re: [PATCH v2 3/3] fs: Use delayed shrinker unregistration Content-Language: en-US To: Andrew Morton , Dave Chinner Cc: Theodore Ts'o , Roman Gushchin , Kirill Tkhai , 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, Qi Zheng References: <168599103578.70911.9402374667983518835.stgit@pro.pro> <168599180526.70911.14606767590861123431.stgit@pro.pro> <20230608163622.GA1435580@mit.edu> <20230608172722.d32733db433d385daa6c11a0@linux-foundation.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Qi Zheng In-Reply-To: <20230608172722.d32733db433d385daa6c11a0@linux-foundation.org> 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=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-kernel@vger.kernel.org On 2023/6/9 08:27, Andrew Morton wrote: > On Fri, 9 Jun 2023 09:17:54 +1000 Dave Chinner wrote: > >>> Given that we're at -rc5 now, and the file system folks didn't get >>> consulted until fairly late in the progress, and the fact that this >>> may cause use-after-free problems that could lead to security issues, >>> perhaps we shoould consider reverting the SRCU changeover now, and try >>> again for the next merge window? >> >> Yes, please, because I think we can fix this in a much better way >> and make things a whole lot simpler at the same time. > > Qi Zheng, if agreeable could you please prepare and send reverts of > 475733dda5a ("mm: vmscan: add shrinker_srcu_generation") and of > f95bdb700bc6bb74 ("mm: vmscan: make global slab shrink lockless")? OK. After reading the proposal suggested by Dave, I think it is more feasible. I will revert the previous changes ASAP, and then try to implement Dave's proposal. Thanks, Qi > > Thanks.