Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7262781imu; Wed, 14 Nov 2018 14:27:51 -0800 (PST) X-Google-Smtp-Source: AJdET5d6Z5ZxylJ0dTpe0t2gU6EaEQxPxool5ibWugDAPNh+y8pOjY21oMpyFBvSQg0lyjEu3P50 X-Received: by 2002:a63:2222:: with SMTP id i34mr3163041pgi.83.1542234471113; Wed, 14 Nov 2018 14:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542234471; cv=none; d=google.com; s=arc-20160816; b=bbnZfmKqEkURSoIySL0Xffh2SnqQZITy4Z4ZVX2idww4a5LPf4isiWMwZMfxFIsrfW qW20ShP8anyiXMt8nsdXIj9xl17WZoABocDBfHgyVFHSm16gcAbT8liHJmLtLKP11tuq cliGYUlDvbTaVyDPNCTg61ZOLuAb9JNQDwhUMmwoZ+J7yxfCJsihtZ9tuIy9+U4CXrr/ A+L8kcCYj1LLKcYZglL5K8Ku+KrQvy6Yfraj75dW/GWAeRByDNaarjCeR2k2pCSWiWZJ y6gbaBv3Gi/ZMEoJXU+mBbZtnpgCmxCQ6lNZalQsv9BneAaYNiR4rddZhtQ+ZgUh2ZlY CIhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=d3ca9Th2qbGGdglHvHy5YXu/4+6WYRWXH6uDcyMPS1M=; b=zmPWcKEw0qivyssFT/DfNS2fiFrO//Q1F7EXEbDQjBHdb6m8vZHO7Io9O6/mSU8MhA 0cpmOmcNvvC3RGolaXnBtt5KMrC6HtN32mRFBr4C0sSreUaPo8F+nh4Hrejih1KUiC/X G76vkNedXO279jacMJiFIb8SZLH8H2QSpxJbafCZsgbYfnwaHvnJ4uE91KkbfREzbdeD 0geokXigzDx8ntZv2gv+zHh6lFvhjMIzjt93AtfcMaUp6lX70wXtyrB+4GZ62jE2Zlti LL9peccOWPOO4MblJ99LZoYCYjhDkbJ8BLzu4COEBC5SLrQhRfBA/8MCFpKAoqlb7Jcx 4c3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wPul8xzn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si24632865pgm.154.2018.11.14.14.27.36; Wed, 14 Nov 2018 14:27:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wPul8xzn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389400AbeKOIbi (ORCPT + 99 others); Thu, 15 Nov 2018 03:31:38 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40920 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389389AbeKOIbh (ORCPT ); Thu, 15 Nov 2018 03:31:37 -0500 Received: by mail-pf1-f193.google.com with SMTP id x2-v6so8607608pfm.7 for ; Wed, 14 Nov 2018 14:26:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=d3ca9Th2qbGGdglHvHy5YXu/4+6WYRWXH6uDcyMPS1M=; b=wPul8xznsE1aCIiqxKpP1o9rnpk3Lbu9rRlFxYs+pW9kmWmZ4GdzV1vCEn+4tlwlPk RjjYqeUwJeyBdhdw48xyx3ERmqLn4cmw1HjSeT3X2Ds/8MkcssX3u5rCpPL4ZVX23t2s lM129dEWjNJueHlZQYgMYeSICWAvQsEJ9NM+Pe4H4MuLeljlLICtZRRVEe4687tf1voB OyO3z5dny1+WcSaPAKhgaUaavJxq9LFcdb7q/hXxuzsONyxPa+7IEFZBKsKvO9YS3Krq 0FWfmGKT3u6zr2mBSXsU2ChIbyuXk4NfqiScWOI0Hwe+JiKRY6//yY2umbgLS56v9q0i EBjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=d3ca9Th2qbGGdglHvHy5YXu/4+6WYRWXH6uDcyMPS1M=; b=I1ASDsSW8HozNUaF3up0zbtKCt7kGgy0DQelZUwc9I9CDm1JwZjuYOez+k6PDVJEgL Vhv9e+Rb08c8Odpk1ZF0/O1FElCbaaFUNNItbjg331F0VL5QCd0NwunwcJeMK18nrla3 lZjZ7SMR3ugruGcmfDUwr0Pa8fpWvHb3eSJVEDfXja1K3vqbsBT/th9+lr2Z6ssa02Qy U0sCNwhBy09ZQwC+9Q3z+FhJcFHVfHuc+5wwO6tc/Dz7ZxI6Mop6oHZwk2YPete4TsUl NIDhcKQPkLekMaznpJhfbIRruiNp+Lcp2Peakxv9G9gh6DoXaetSEOA8TDR5Q5lcjSib 8Y1w== X-Gm-Message-State: AGRZ1gIqxPnE11AEIwEcfXs2aNPO/W9zY57tw8NtMWjLUQbqTDXAUBEE GDndnciYzqRu7XNnoIVFvgK4xQ== X-Received: by 2002:a63:dd55:: with SMTP id g21mr3378025pgj.86.1542234024761; Wed, 14 Nov 2018 14:20:24 -0800 (PST) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id z83-v6sm29450958pfi.4.2018.11.14.14.20.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Nov 2018 14:20:23 -0800 (PST) Date: Wed, 14 Nov 2018 14:20:22 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Yangtao Li cc: akpm@linux-foundation.org, mhocko@suse.com, dan.j.williams@intel.com, linux@dominikbrodowski.net, dave.hansen@linux.intel.com, dwmw@amazon.co.uk, mhocko@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: mmap: remove verify_mm_writelocked() In-Reply-To: <20181108174856.10811-1-tiny.windzz@gmail.com> Message-ID: References: <20181108174856.10811-1-tiny.windzz@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Nov 2018, Yangtao Li wrote: > We should get rid of this function. It no longer serves its purpose.This > is a historical artifact from 2005 where do_brk was called outside of > the core mm.We do have a proper abstraction in vm_brk_flags and that one > does the locking properly.So there is no need to use this function. > > Signed-off-by: Yangtao Li Acked-by: David Rientjes