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=-4.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 0F3D7C4727C for ; Tue, 29 Sep 2020 00:31:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8111F2193E for ; Tue, 29 Sep 2020 00:31:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TmawCs9q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8111F2193E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6C8096B005C; Mon, 28 Sep 2020 20:31:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 650486B005D; Mon, 28 Sep 2020 20:31:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 517846B0062; Mon, 28 Sep 2020 20:31:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0119.hostedemail.com [216.40.44.119]) by kanga.kvack.org (Postfix) with ESMTP id 387706B005C for ; Mon, 28 Sep 2020 20:31:02 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E9BA61DF6 for ; Tue, 29 Sep 2020 00:31:01 +0000 (UTC) X-FDA: 77314219122.13.soup49_24116a127185 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id C3ADE18140B67 for ; Tue, 29 Sep 2020 00:31:01 +0000 (UTC) X-HE-Tag: soup49_24116a127185 X-Filterd-Recvd-Size: 4950 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Tue, 29 Sep 2020 00:31:01 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601339460; 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: in-reply-to:in-reply-to:references:references; bh=KvjrWxE7p1uKtiSqam0MWPYzBBvAKlG+w6tiS6hXtPk=; b=TmawCs9qHn7VW3R5ZJNTl2omQwEm/C9BAbfOHJHlFq5WOQ6xEy2FSGuqLt389PfrSfaf5L 6LKa8KO1zPrpnU2MCBS0+CLWwHnGzO0MuM53R1leELgxnejfhK7KKRFajdpBKPW4C5h8Kr 8P1bwHu4INkOUn4+5xvaHfNQkzMl7rc= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-205-FlvbWNA9OhOb52cX9oj1vQ-1; Mon, 28 Sep 2020 20:30:57 -0400 X-MC-Unique: FlvbWNA9OhOb52cX9oj1vQ-1 Received: by mail-qt1-f199.google.com with SMTP id u6so1838661qte.8 for ; Mon, 28 Sep 2020 17:30:57 -0700 (PDT) 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:message-id:references :mime-version:content-disposition:in-reply-to; bh=KvjrWxE7p1uKtiSqam0MWPYzBBvAKlG+w6tiS6hXtPk=; b=PTsgB4+Jcykl97g/cCAsTAF8fHucTAzx2zrDr+fPw7qS/iMqkrN5fXf7V1Thc+VTMw Er/viTaJGOOFPPweZpZAURIKYz7hXLEUYd0gGo0TbK72c7bIezRoUFt+SbAOUWj0Tfwr vy3SPtEUzxNUoqnL5lbB/0yxBQQazCyKQMdh2gN4hz1bBrCLSG/G8shO0CSkPlZP/2pG tmK2CQR+XaWiaSyh2VFqmkZ1QrZj/tHIXbO/ITqQ4Cj30HVQ9lhKI/L6XYc3zdAxY4/q xgUudmQcmUkzBbnF/YqRoslYYMq8SjOohhiG2EEtIc2/Vx4zqZJ1lFM7hF2KnhAKyzbP chqQ== X-Gm-Message-State: AOAM533Y2/mjmOUAnX7c8itzukqIgMn1qjfKUn1ZBWfuHZj2HOHyEB5T aTaPPUXETiu9p/ku9GdEhTL6SM1o8+CXao39zbsq8rSwN7PXzyCjb6Grb9DpHNnerzUf2TgVpYj lIS3DCZwh/iE= X-Received: by 2002:a05:620a:90c:: with SMTP id v12mr1991704qkv.16.1601339456639; Mon, 28 Sep 2020 17:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHeZrzQ/HEjSKQSGh/rUbEibZNnnTqxnzr1D8d9WoObhlHFSBrnpHBk8nv3jfeNY1xFdhQOg== X-Received: by 2002:a05:620a:90c:: with SMTP id v12mr1991683qkv.16.1601339456339; Mon, 28 Sep 2020 17:30:56 -0700 (PDT) Received: from xz-x1 (bras-vprn-toroon474qw-lp130-11-70-53-122-15.dsl.bell.ca. [70.53.122.15]) by smtp.gmail.com with ESMTPSA id m18sm2804062qkg.77.2020.09.28.17.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 17:30:55 -0700 (PDT) Date: Mon, 28 Sep 2020 20:30:54 -0400 From: Peter Xu To: Jason Gunthorpe Cc: Linus Torvalds , Leon Romanovsky , 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 , Jann Horn Subject: Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned Message-ID: <20200929003054.GF59869@xz-x1> References: <20200928124937.GN9916@ziepe.ca> <20200928172256.GB59869@xz-x1> <20200928183928.GR9916@ziepe.ca> <20200928225107.GT9916@ziepe.ca> MIME-Version: 1.0 In-Reply-To: <20200928225107.GT9916@ziepe.ca> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=peterx@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 Mon, Sep 28, 2020 at 07:51:07PM -0300, Jason Gunthorpe wrote: > > So I'll attach my suggested patch, but I won't actually commit it. I'd > > really like to have this tested, possibly _together_ with the sequence > > count addition.. > > Ok, we will do this once the holidays are over. If Peter doesn't take > it I can look at the seqcount too. Please feel free to. I can definitely test against the vfio test I used to run, but assuming the rdma test would be more ideal. Just let me know if there's anything else I can help. Thanks, -- Peter Xu