From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E75ACC2D0A8 for ; Sat, 26 Sep 2020 22:34:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2B749238D6 for ; Sat, 26 Sep 2020 22:34:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="eM40qe7x" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B749238D6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5732B6B005C; Sat, 26 Sep 2020 18:34:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4FD416B005D; Sat, 26 Sep 2020 18:34:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 34FF96B0068; Sat, 26 Sep 2020 18:34:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0204.hostedemail.com [216.40.44.204]) by kanga.kvack.org (Postfix) with ESMTP id 17B676B005C for ; Sat, 26 Sep 2020 18:34:23 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id C92A62C32 for ; Sat, 26 Sep 2020 22:34:22 +0000 (UTC) X-FDA: 77306667564.04.end85_100f3fd27173 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id A8EE8800E073 for ; Sat, 26 Sep 2020 22:34:22 +0000 (UTC) X-HE-Tag: end85_100f3fd27173 X-Filterd-Recvd-Size: 4597 Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by imf04.hostedemail.com (Postfix) with ESMTP for ; Sat, 26 Sep 2020 22:34:22 +0000 (UTC) Received: by mail-lf1-f68.google.com with SMTP id m5so6828984lfp.7 for ; Sat, 26 Sep 2020 15:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x5311Cy+5DCxZN2zAMmFnDHSFfNBkBdzbRGB2+4qmlE=; b=eM40qe7xNe/voahDDsD2+ynKrCh6tr+a8hkfQXaw7ZsgyvOb7QTfd11jF1V1yIvj66 QnA5VeYmOA4XA9JilcomS14bh0OgX8MsCmXGMBGQnDeVJSgSqEJyY3HBjxJzy+siGE/h 9+dTc1JsEX62nNBYXvVeboBvNAXsH6roUjn38= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x5311Cy+5DCxZN2zAMmFnDHSFfNBkBdzbRGB2+4qmlE=; b=maHMe7q2z7xeEVghdgmSegHCAJdIbvzYutq6F99Yd0Zyp9q07d9Tw1daSZ9N1AuTU8 FEgirpI7hhGKKP972HJukIVIJ25iip/yPxVFQN8Vq2lTJqduvPxZnDz+gMCCWokiKbiN jgIBDa30GXIJU1BYcX7Ts9YZ0Vs1DTxj21ZRcmkKDEyUrO+z6pFxqZ7KmhZFWcBr4QEl lotUA+wzxyGhSH3dFT0G0ZLHdbJ//n30WMBJFS+8K+XiZI01Ugixbhd2L5ijsduIdG+u 13KMYnlI4qXZWZZknCyLKHxYAlFSJlThh1QgEVVoo0Z1KSMEBxmzGcQq9sfabaBqSX+m VumQ== X-Gm-Message-State: AOAM530xJAfl0a95Pi9+zsJGs6tp0TDnrugXJyiluQQWad0/W9xmEweZ aC6Ij87AQ/tx0kum2NeH4vna1VUdwXjqew== X-Google-Smtp-Source: ABdhPJy4+0JcM657wWEARICzxokkSKwcRjNPt0acl6McIou5yDfTCHbTsFC52WiJBwdlpaTn23euvA== X-Received: by 2002:ac2:57c7:: with SMTP id k7mr1735368lfo.20.1601159660296; Sat, 26 Sep 2020 15:34:20 -0700 (PDT) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id b11sm2175262lfo.66.2020.09.26.15.34.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Sep 2020 15:34:20 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id d15so6798168lfq.11 for ; Sat, 26 Sep 2020 15:34:19 -0700 (PDT) X-Received: by 2002:a2e:7819:: with SMTP id t25mr2940089ljc.371.1601159327915; Sat, 26 Sep 2020 15:28:47 -0700 (PDT) MIME-Version: 1.0 References: <20200923170759.GA9916@ziepe.ca> <20200924143517.GD79898@xz-x1> <20200924165152.GE9916@ziepe.ca> <20200924175531.GH79898@xz-x1> <20200924181501.GF9916@ziepe.ca> <20200924183418.GJ79898@xz-x1> <20200924183953.GG9916@ziepe.ca> <20200924213010.GL79898@xz-x1> <20200926004136.GJ9916@ziepe.ca> In-Reply-To: From: Linus Torvalds Date: Sat, 26 Sep 2020 15:28:32 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned To: Jason Gunthorpe Cc: Peter Xu , John Hubbard , Linux-MM , Linux Kernel Mailing List , Andrew Morton , Jan Kara , Michal Hocko , Kirill Tkhai , Kirill Shutemov , Hugh Dickins , Christoph Hellwig , Andrea Arcangeli , Oleg Nesterov , Leon Romanovsky , Jann Horn Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Sep 25, 2020 at 6:15 PM Linus Torvalds wrote: > > I think that over the weekend I'll do Peter's version but with the > "page_mapcount() == 1" check, because I'm starting to like that > better than the mm->has_pinned. Actually, rafter the first read-through, I feel like I'll just apply the series as-is. But I'll look at it some more, and do another read-through and make the final decision tomorrow. If anybody has any concerns about the v2 patch series from Peter, holler. Linus