Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp96575lqn; Thu, 11 Apr 2024 15:22:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjEQMcWROfYe4tdG6BmD5rTyBEaJuEk/xN43ig+v+kd7QqI8Mw3MNDstg/97KTXBQT3ivTBHG4RfMilSZMKplH0ikVAWX+EOd18iGeFA== X-Google-Smtp-Source: AGHT+IHpdYo+Z3n916QZuJpP7Jc4aeE5RuTJ99Xn566eZ5xZ3JI7vJLQGUX6hA14GPQBzPXmW9yi X-Received: by 2002:a05:6a20:6a20:b0:1a7:47ff:5f37 with SMTP id p32-20020a056a206a2000b001a747ff5f37mr1584524pzk.0.1712874147786; Thu, 11 Apr 2024 15:22:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712874147; cv=pass; d=google.com; s=arc-20160816; b=BoVG3snT5JKz9aWntSAGQO17oIkiHoFDoLUw9fgMMD/RlGlxMv68UJZfVMGdxzrDu/ VCCmxDgh/Ueg9bXyuSfiJZjwATP9rVFe/cY35m1hqNO5hifR1+OGtNd23QP/IqZydbiQ DIk+d4/i4zcZQiFAKP2uxDNpnKI0jRBX+8Y0qON40df2l7n1DhM25V0s0w9tLdm026NQ CoTvweIFKKj7y+GT/8qSlJu7NBxGvH6BcPKUJa3lP6Pd73u9nNYF58TJhEHOmO9D4VUV r7xnZKCf8R5/FRFyRu28kWbemDWivoUKSVGo0FpnIIIGau7OlN4ibH4Pqvfz4XqSEhc1 va/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u8ONCHTbMYw+HuP94f+vXbsWbQuW9Wq6kjOeo/Gca+s=; fh=iDS4lD3IEG4YyVDLvWKE+En6fruH3ys1P7G/+ADi9hA=; b=W5DKnbhEr3GOvoI8+oVN5CJ6JyMYwnBSjX3wstni9ZcHlqD+Fg80NnRioHrZEhcsA1 WPg4/FvM8MxYqGc5l8TjpPh59K3644b3aB9nl8SOcWP8DS1ZWXPcj0gyEitmzTyOP5Ty jgpZ0/llGltTGe20sNPd3tojcfa2nEacr/01lFfzVMV2f5EgvKjb5gjzKdJ8xZzd6ukI Dezq00wqPWq9PjTgdZI6JZ/Anc2W5+wYSONauIRLPfLLt7o9r2MECAE1CmD5Hj79dEhb 8MZp8OQcFPjcobIWlMcC8+i4x3jMZM4z65mmS1fwCnpYKJbzni1cq5Pw5qTdXW8M65Ye 956g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rlF82H7m; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-141390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141390-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x41-20020a056a000be900b006ed03e87dd2si2053513pfu.113.2024.04.11.15.22.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 15:22:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rlF82H7m; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-141390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141390-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id ECFC12894E0 for ; Thu, 11 Apr 2024 18:14:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 559EF1EB1C4; Thu, 11 Apr 2024 17:14:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="rlF82H7m" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 225E11EB1C5 for ; Thu, 11 Apr 2024 17:14:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712855650; cv=none; b=A/VEu8U0bJPN3yNopcH1x12pV6IZycmHsrFBdon0I+yPEKtTC48o1jwdUzfo4gICIQSabytUPplkAaV2FdnnCuXcE/ytLMRyQUkVodTqQsKfiCtnhTAOqU+rGGbP7VMzbEsEmvTyGNZV7nC5rS1rzUTQqTwKGHnTUeXVjrWJasQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712855650; c=relaxed/simple; bh=KzIfpkxGQTLR8rP92KQ0/zyb38KE4fX0idfEoIGOEOQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ay2U4xiFwsDF1WjaVl1f5MIdZOYcIH1ZP0AzsaG/ID24m0nEJiT/MarNjOvAtpSQY63zIZSsEQ2p7GlOODIKcsNuej3l9pyEQaN2LI0owiPv3Gh7FJQMrBLvAZFoKbGs+IfDuSE5we52ZURnkqF64EvWPJl4x9WhDjMhhx1xYXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=rlF82H7m; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=u8ONCHTbMYw+HuP94f+vXbsWbQuW9Wq6kjOeo/Gca+s=; b=rlF82H7mQVf0gyU9vHbCQeLy+R ICyYbl8rX/dFBAPo/kHuxDPKszAWGqlBlZ2Hm5+3APUcwetl6wU2z8RMJwDlvi5OkHR9oaxVgUh8r 4X1Oa4OeNlSG8ePk1FKUQHemNeosZ7pb9zja6CaSAllt5dDsPmd8V4Ad5X9ROzcTDLJwW+/7O71bs iseLu34oOV95rzZjQTBbDzqcPDa/Gz6aLKnXa8xSut7ETTsKiBmWB5D9TM+9Y5XyfDCRQtphz3oKl 5I3E8XxZ0Mj6BH2jWhGnX76QEY6IVkl1e3euxZq5nLPxt9/gOW+a/QeQJXcbCS7A63kXWoXgWnFaU kSqaG35A==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruxzx-00000007OPo-1YYl; Thu, 11 Apr 2024 17:14:05 +0000 Date: Thu, 11 Apr 2024 18:14:05 +0100 From: Matthew Wilcox To: Peter Xu Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Suren Baghdasaryan , Lokesh Gidra , "Liam R . Howlett" , Alistair Popple Subject: Re: [PATCH] mm: Always sanity check anon_vma first for per-vma locks Message-ID: References: <20240410170621.2011171-1-peterx@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 11, 2024 at 11:34:44AM -0400, Peter Xu wrote: > If the answer is yes, I'd say please provide some document patch to > support such behavior, you can stop my patch from getting merged now, > but it's never clear whether someone else will see this and post it > again. If it wasn't obviously to Suren who introduced per-vma lock [1], > then I won't be surprised it's unknown to most developers on the list. Anyone touching this path should have a good idea about what is and is not the common case. Your confidence greatly exceeded your ability here. I will not be submitting such a patch.