Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp144589pxb; Thu, 31 Mar 2022 01:37:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy++hUfiBi8Y0+SYIDrzTLZn7qv7BUm4WhMNkI6SGpO7o4ZkQIzeP2oTT9OrFya6TvM5mxy X-Received: by 2002:a05:6a00:2310:b0:4fa:7eb1:e855 with SMTP id h16-20020a056a00231000b004fa7eb1e855mr4300665pfh.14.1648715854777; Thu, 31 Mar 2022 01:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648715854; cv=none; d=google.com; s=arc-20160816; b=JcZYBsPPw78NS10H0btrOBdn54jjbCJviRD1uJg7NL/G5KWsxmlxfBC/3liaONbi9W qPg/yh+nbrAjVWHqSmXeTU7lxe++A7C7kKFBCKQ/pwwLqhSgu9TzCN/H47RdIaw7Tn39 VPb5u/Lfvmp9vECRoNm6yZ0yuUsI1f5a1m0CNpT1psGtk10vraCDrfc3kvBmZ4KBf27Z defQbzXrtJfJC4wD5gusnjoC1hMa0nzJy8sCutiuQd0hIfjdKfwDn7VLA7w45ZCItb4V fb3sjF35xLHS0RP3Ptq4gOMCS8VCPQha84DXnCQfelvpuZ80epR6iwBjvkI/PdtZMmSk yU/A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MClpEQCEqNuvlVug+pSR2PKBVfdIgjYBgqwIpn2O7Gg=; b=BPJa/QAIdwrRoXVm0LLNsu9bdILFlBmEpQl5XtYx2awSSe5H2lNsY65YmUUxTWgdUR Y5eWpLnxOOSTQjza/4GG4gLo57bS3EPEVNl0L+CQYMlaiCC9k8gc2zRDTI5SvaXwtwYg sOGHp17rDLbS/edEVzUoXEM2cZCzMkNZ/dTjW0Qwm1Y6uu9ymMx6HlvwK9jH9Tcv/3Gj HXYiT0R5k8N4up1dT5XTSIeb6J5/tmgZVoKdFMgdxIzKhG40J3C3X0uB4kSHtenm7zZf Mb7Tkrx/Pqj4jPrjjX9QF3i8wWKrLKwkBiEx1hnNH+nUyaw4gsFjGQGVwOa8eUzlGIGh Bl0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=EiSTzvcB; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o25-20020a635a19000000b0038290f9d5eesi23274837pgb.114.2022.03.31.01.37.21; Thu, 31 Mar 2022 01:37:34 -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=@suse.com header.s=susede1 header.b=EiSTzvcB; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232395AbiCaHsn (ORCPT + 99 others); Thu, 31 Mar 2022 03:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229924AbiCaHsm (ORCPT ); Thu, 31 Mar 2022 03:48:42 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A46C1D97C4 for ; Thu, 31 Mar 2022 00:46:55 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id F318121900; Thu, 31 Mar 2022 07:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1648712814; h=from:from:reply-to: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=MClpEQCEqNuvlVug+pSR2PKBVfdIgjYBgqwIpn2O7Gg=; b=EiSTzvcBcwyt5d21/dSJyyFfU8OvvcT2KgT0DDTSOTwqTFtPB+VgnitdY9jIyVhlxRCI/d AjKiThObJcEEVZ+GMmERBez8Z0qd3Dpkk5E71Z/UOTV+ZekG/Qm4Sl9Gz+agwV55lcHM37 bKv4SA1mfRBLGqhkjuf7XJwdK1aZ9KY= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 52242A3B82; Thu, 31 Mar 2022 07:46:48 +0000 (UTC) Date: Thu, 31 Mar 2022 09:46:52 +0200 From: Michal Hocko To: Shakeel Butt Cc: Roman Gushchin , Andrew Morton , Waiman Long , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song Subject: Re: [PATCH v2] mm/list_lru: Fix possible race in memcg_reparent_list_lru_node() Message-ID: References: <20220330191440.1cc1b2de2b849d1ba93d2ba7@linux-foundation.org> <89B53D3A-FCC5-4107-8D49-81D5B9AE5172@linux.dev> <20220331063956.5uqnab64cqnmcwyr@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220331063956.5uqnab64cqnmcwyr@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu 31-03-22 06:39:56, Shakeel Butt wrote: > On Wed, Mar 30, 2022 at 07:48:45PM -0700, Roman Gushchin wrote: > > > > > [...] > > > > > > But honestly, I’d drop the original optimization together with > > the fix, if only there is no _real world_ data on the problem and > > the improvement. It seems like it has started as a nice simple > > improvement, but the race makes it complex and probably not worth > > the added complexity and fragility. > > I agree with dropping the original optimization as it is not really > fixing an observed issue which may justify adding some complexity. Completely agreed. The patch as it is proposed is not really acceptable IMHO and I have to say I am worried that this is not the first time we are in a situation when a follow up fixes or unrelated patches are growing in complexity to fit on top of a performance optimizations which do not refer to any actual numbers. -- Michal Hocko SUSE Labs