Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp192186pxk; Fri, 11 Sep 2020 04:21:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznE9pGl/vQPp3kVzkcxuyaeNymTy1ZMqSx8NxmLF9DGK8JEgmAsqwI+wK45GoKEXzxmoEH X-Received: by 2002:aa7:dcc1:: with SMTP id w1mr1359363edu.360.1599823264154; Fri, 11 Sep 2020 04:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599823264; cv=none; d=google.com; s=arc-20160816; b=W1Imp0bxCDtCCKNpnXqvGLYZ83pXklb/+HrN3CkjlhgtuDRXKpgrGnJr2Ue9OMqklZ HlPfjqyeYLe7QjhcR9TbxxliP9gaZURz4TKf5/Ndgp79V4XlP8KTa8JSyeJNA0uGGUd7 4IVnqyZI5raETFAeP6V5PPiV1BtVeSPRjCwpXrRwR0o+eOzcyyHDYkHRXbdPxXsDDTDq VJDZAKXLyJzJobrEfpeH94YqUIFnZx62zxLYFVghKwQg8FIsvnYc6JzVhrUF9jnryZzJ K+F6kk8zcwHScQ/cPTdXfzhFX6/jhyXlnATLL/kWsr40y5taXOcoymYiKVG6As/GOt7I q8Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RF/fhPo5kBauAi3eDmZJgpqIrahl3Q40enwZDmyVW/Y=; b=Vlq1QOFOA7ZfDhSsJ2D7LGhANGhcwr/IYxqIBbCGYdMGd8Vt2XEBALhJJ5ufBTQtk0 jObUV07EG0ShP9fUwRBDVX09S0JSYpFFKrtdpKIe/8b16FzzT/Nw+sCKFfAPcMFt4oKK XmaDPH6VKE2Xh5DbVZgovsxXgVtkYvneuZVM/QIa5M3lSbKdO9LVAAmRNdSCKpqI6cza dlZIAPCgiJ2dfoRJMAox81BiR2w0S2CT83ttVaXw/Ia2V/76fK7uP/r7BUw8I7A6+/JR wkjVcMVgHmcqwVYLDXEAM6Uaa/UPmLkZCrMRSPzUplWgftTvqeUbdFYvy9egiPv57hXm NEFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=MranxbqI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i26si1022207ejx.591.2020.09.11.04.20.40; Fri, 11 Sep 2020 04:21:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=MranxbqI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725798AbgIKLT6 (ORCPT + 99 others); Fri, 11 Sep 2020 07:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbgIKLTe (ORCPT ); Fri, 11 Sep 2020 07:19:34 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C37A7C061757 for ; Fri, 11 Sep 2020 04:19:33 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id q5so9505571qkc.2 for ; Fri, 11 Sep 2020 04:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RF/fhPo5kBauAi3eDmZJgpqIrahl3Q40enwZDmyVW/Y=; b=MranxbqI0sbZTUHr/5nRrvvNnaOGVKUaAfIpgrguT3kotqu2/+vaLtFjLBr7Dchw8g JJmcJV/C0jOxv4hRKHMp+z8brOgZNv7zPlHzEFTxIGRfWe+oDWMX2pQve/8jTAvpKMiT 7RN3juzzMtOiuIWBUDCT1BvIFCKf6bxkwXrdAtvSLUiKX/5kI+sFcR6JdpWoUm6ixgyF dLqTOenPUtqGXVDIBwggt4h+6OsbKY/DS4ZW5VLOTe31mPZEk/NO9CEvKD3cWUNhjl7s kxOAXY9+GRt4ctbpbjP727YWsJahqV0QyR6AL3DhYyp7rVFeR5dvwtqaEjOc69J99Ry7 iGPw== 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=RF/fhPo5kBauAi3eDmZJgpqIrahl3Q40enwZDmyVW/Y=; b=UnI6sIwSnJu4fAC7eJzsuyPvUfxj0mcnf1Aizyjpa5BelA8eRvPPv6cNbezwoyBlYD AQNBN2Ez2fw63oLr9GRMTkFLONzg1E8kR9qyDtbskMgh8NxpjEdweKMKwkPu7csgTWLD FROtF94Nwf+tS1bjaLX/6wlLk5YqDhTrhuAJ/qNWAnFVu7z3GC+LJOYdilqF3V1izzMv d2OsdhPi0jcaV3E2RcuoWGSjrLNJ2/SYS6KaPsL1eXXvEWN0ISbtvBl/6A39crj8Dxth 6XLiQ3K4xGePYF4KJoUO2WtsTWsFYaH0GMRtRQZ1VzoCbt1LWeNWOPW1brA0wgcRwhXe ZMzA== X-Gm-Message-State: AOAM533D81rRwD64DKJaDzoRkxF1LqmL7FDNg3weU7gJMb5ZBdwEJ6zU 48Za+FL9Y5NyxogalZGix1khXw== X-Received: by 2002:a37:a8ca:: with SMTP id r193mr1042066qke.83.1599823172826; Fri, 11 Sep 2020 04:19:32 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id k185sm2269296qkd.94.2020.09.11.04.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 04:19:31 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kGh5W-004ktM-DO; Fri, 11 Sep 2020 08:19:30 -0300 Date: Fri, 11 Sep 2020 08:19:30 -0300 From: Jason Gunthorpe To: peterz@infradead.org Cc: Linus Torvalds , Gerald Schaefer , Alexander Gordeev , Dave Hansen , John Hubbard , LKML , linux-mm , linux-arch , Andrew Morton , Russell King , Mike Rapoport , Catalin Marinas , Will Deacon , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Jeff Dike , Richard Weinberger , Dave Hansen , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Arnd Bergmann , Andrey Ryabinin , linux-x86 , linux-arm , linux-power , linux-sparc , linux-um , linux-s390 , Vasily Gorbik , Heiko Carstens , Christian Borntraeger , Claudio Imbrenda Subject: Re: [RFC PATCH v2 1/3] mm/gup: fix gup_fast with dynamic page table folding Message-ID: <20200911111930.GS87483@ziepe.ca> References: <20200909192534.442f8984@thinkpad> <20200909180324.GI87483@ziepe.ca> <20200910093925.GB29166@oc3871087118.ibm.com> <20200910181319.GO87483@ziepe.ca> <20200910211010.46d064a7@thinkpad> <20200910215921.GP87483@ziepe.ca> <20200911070939.GB1362448@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200911070939.GB1362448@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 11, 2020 at 09:09:39AM +0200, peterz@infradead.org wrote: > On Thu, Sep 10, 2020 at 06:59:21PM -0300, Jason Gunthorpe wrote: > > So, I suggest pXX_offset_unlocked() > > Urgh, no. Elsewhere in gup _unlocked() means it will take the lock > itself (get_user_pages_unlocked()) -- although often it seems to mean > the lock is already held (git grep _unlocked and marvel). > > What we want is _lockless(). This is clear to me! Thanks, Jason