Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp400036ybl; Fri, 9 Aug 2019 07:41:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqydahmr4wO/q6Es3AtAxoTtfF1azZMBB5pgSeL6UB7dgUdINAkbkFOtvSr0iseFRJP+qjTJ X-Received: by 2002:a63:205f:: with SMTP id r31mr15473719pgm.159.1565361689431; Fri, 09 Aug 2019 07:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565361689; cv=none; d=google.com; s=arc-20160816; b=jOMDMpWI1zXn67AsBE2Vn7QuEKMVfkbXG4vrlAft76T9vQzpEWWm60n8Ph200kFWWV hwtW4Z8rHsqLYNoHkNGDZdL/vo5VkmjWsCOvrZhe6v3mzUspMdOAvUDAUzv0Ej9sCocm BmSsg9FXpSMYmUGqpqA8osOuux7MaHFplkPboXU+6Ug6M12haZh2VFbb3nlCnOAkAvJZ L7RUuLo7oAfVrGovmnq8tlOi+cN/ufmc7kKiU8dNU1smDcqOQ0/uerzdqN3OZyO2WsO2 L1UubHiPCeZI0PjpHhrma5t2LXCuKKpTyxSi1Oyty/zzjC3wAciC1/9m3XmDhC8qoof/ fM0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=l7uKp3K4EbM9KyoRj7AO/zvtCj1gEUQQuaXBGUpg0cg=; b=PR2w0IHfrn0iHAuWodl8YZftYEnKoQJ0L8jVsez47h9PWlF2YCkCQgGdZyNYlvgQe/ HYfnBedMy2HPoY/kib32OXKLuQUlxNSFoPrqkAUc6jW3e14Y9HIb8zvLgvr2PC4Sd1Oc lAnisBOQkZL3BuG4V9HetPFOGgoynQ0/tPszDIUodP7p9CUIf6JGVBLWt1heCRX0Z0lc hJYpDCMTIpwMG8wkK0ksOI+gPjnT/RwMxcwvzj09CFXAtMnvCW+QoKsfUoHJ0RF0uz4Y OUfNQD9M1N4uwKIvzIksKF5/OenYDiKTuGIkY8Ceu+DkkKUYN0tjToikeakloNPDwX+j TrVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si3884178pfn.41.2019.08.09.07.41.14; Fri, 09 Aug 2019 07:41:29 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406967AbfHIOg2 (ORCPT + 99 others); Fri, 9 Aug 2019 10:36:28 -0400 Received: from verein.lst.de ([213.95.11.211]:55735 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfHIOg2 (ORCPT ); Fri, 9 Aug 2019 10:36:28 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E722868BFE; Fri, 9 Aug 2019 16:36:23 +0200 (CEST) Date: Fri, 9 Aug 2019 16:36:23 +0200 From: Christoph Hellwig To: Thomas Hellstrom Cc: Christoph Hellwig , Linus Torvalds , Andrew Morton , Jerome Glisse , Jason Gunthorpe , Steven Price , Linux-MM , Linux List Kernel Mailing Subject: Re: cleanup the walk_page_range interface Message-ID: <20190809143623.GA10269@lst.de> References: <20190808154240.9384-1-hch@lst.de> <20190808215632.GA12773@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 09, 2019 at 12:21:24AM +0200, Thomas Hellstrom wrote: > On 8/8/19 11:56 PM, Christoph Hellwig wrote: >> On Thu, Aug 08, 2019 at 10:50:37AM -0700, Linus Torvalds wrote: >>>> Note that both Thomas and Steven have series touching this area pending, >>>> and there are a couple consumer in flux too - the hmm tree already >>>> conflicts with this series, and I have potential dma changes on top of >>>> the consumers in Thomas and Steven's series, so we'll probably need a >>>> git tree similar to the hmm one to synchronize these updates. >>> I'd be willing to just merge this now, if that helps. The conversion >>> is mechanical, and my only slight worry would be that at least for my >>> original patch I didn't build-test the (few) non-x86 >>> architecture-specific cases. But I did end up looking at them fairly >>> closely (basically using some grep/sed scripts to see that the >>> conversions I did matched the same patterns). And your changes look >>> like obvious improvements too where any mistake would have been caught >>> by the compiler. >> I did cross compile the s390 and powerpc bits, but I do not have an >> openrisc compiler. >> >>> So I'm not all that worried from a functionality standpoint, and if >>> this will help the next merge window, I'll happily pull now. >> That would help with this series vs the others, but not with the other >> series vs each other. > > Although my series doesn't touch the pagewalk code, it rather borrowed some > concepts from it and used for the apply_to_page_range() interface. > > The reason being that the pagewalk code requires the mmap_sem to be held > (mainly for trans-huge pages and reading the vma->vm_flags if I understand > the code correctly). That is fine when you scan the vmas of a process, but > the helpers I wrote need to instead scan all vmas pointing into a struct > address_space, and taking the mmap_sem for each vma will create lock > inversion problems. True. So you'll just need to apply the same lessons there, and we should probably fine with this series going into 5.3-rc.