From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH v6 02/11] mm/gup: Use functions to track lockless pgtbl walks on gup_pgd_range References: <20200206030900.147032-1-leonardo@linux.ibm.com> <20200206030900.147032-3-leonardo@linux.ibm.com> <760c238043196e0628c8c0eff48a8e938ef539ba.camel@linux.ibm.com> From: John Hubbard Message-ID: <0c2f5a89-4890-fd84-6a6d-e470ba110399@nvidia.com> Date: Fri, 7 Feb 2020 14:54:29 -0800 MIME-Version: 1.0 In-Reply-To: <760c238043196e0628c8c0eff48a8e938ef539ba.camel@linux.ibm.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit To: Leonardo Bras , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Arnd Bergmann , Andrew Morton , "Aneesh Kumar K.V" , Nicholas Piggin , Christophe Leroy , Steven Price , Robin Murphy , Mahesh Salgaonkar , Balbir Singh , Reza Arbab , Thomas Gleixner , Allison Randal , Greg Kroah-Hartman , Mike Rapoport , Michal Suchanek Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org List-ID: Message-ID: <20200207225429.5aCrW_SZh8JFKYhfpWhnTm1PPU_tdcr6-BrdEE9trfo@z> On 2/5/20 7:25 PM, Leonardo Bras wrote: > On Thu, 2020-02-06 at 00:08 -0300, Leonardo Bras wrote: >> gup_pgd_range(addr, end, gup_flags, pages, &nr); >> - local_irq_enable(); >> + end_lockless_pgtbl_walk(IRQS_ENABLED); >> ret = nr; >> } >> > > Just noticed IRQS_ENABLED is not available on other archs than ppc64. > I will fix this for v7. > What's the fix going to look like, approximately? thanks, -- John Hubbard NVIDIA