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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH autolearn=unavailable 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 CB247C28D1B for ; Thu, 6 Jun 2019 07:44:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A21A5207E0 for ; Thu, 6 Jun 2019 07:44:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="h3LHlMdQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbfFFHoG (ORCPT ); Thu, 6 Jun 2019 03:44:06 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:4157 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfFFHoG (ORCPT ); Thu, 6 Jun 2019 03:44:06 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 06 Jun 2019 00:44:04 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Thu, 06 Jun 2019 00:44:04 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 06 Jun 2019 00:44:04 -0700 Received: from ngvpn01-171-236.dyn.scz.us.nvidia.com (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 6 Jun 2019 07:44:02 +0000 Subject: Re: [PATCH 12/16] mm: consolidate the get_user_pages* implementations To: Christoph Hellwig CC: Linus Torvalds , Paul Burton , James Hogan , Yoshinori Sato , Rich Felker , "David S. Miller" , Nicholas Piggin , Khalid Aziz , Andrey Konovalov , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , , , , , , , References: <20190601074959.14036-1-hch@lst.de> <20190601074959.14036-13-hch@lst.de> <20190606062018.GA26745@lst.de> X-Nvconfidentiality: public From: John Hubbard Message-ID: Date: Thu, 6 Jun 2019 00:44:02 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190606062018.GA26745@lst.de> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1559807044; bh=mMOlfiNeriS8dHk456D4i2uPqqdGUdRNA/UjahArgCQ=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=h3LHlMdQHamD4aUSwPzeTds3U6FI5EEYLkWJ4CyKjK6e+LboNBSAbcSHpVs2ab/a6 z9eQd8NbRaW2yWXClwhhhoDwI/Bg8V5MhP9jYxjADW4on9H1UbzwmFXUvBa2QQc0YP 3BZxHfWSY+4OVCEed52WcnU8jW1oCIuqanuBVjnZxsQlD1tSrzhAGFH+mkQujZW9MV 3WEIf8zeYJc6hdtRCd3LqEJefWg6Q5t5xgsR/hrqbzz+0tbm21c1EGeCCpOskwezjW 2zGjfIhkSG9BX9aupNObBuuWNlgR4cVZm3rSLITraOByP9C918Zm94j22vnCvn0l3v eA+GgKwaIXi4w== Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On 6/5/19 11:20 PM, Christoph Hellwig wrote: > On Wed, Jun 05, 2019 at 11:01:17PM -0700, John Hubbard wrote: >> I started reviewing this one patch, and it's kind of messy figuring out >> if the code motion preserves everything because of >> all the consolidation from other places, plus having to move things in >> and out of the ifdef blocks. So I figured I'd check and see if this is >> going to make it past RFC status soon, and if it's going before or after >> Ira's recent RFC ("RDMA/FS DAX truncate proposal"). > > I don't like the huge moves either, but I can't really think of any > better way to do it. Proposals welcome, though. > One way would be to do it in two patches: 1) Move the code into gup.c, maybe at the bottom. Surround each function or group of functions by whatever ifdefs they need. 2) Move code out of the bottom of gup.c, into the final location. ...but I'm not certain that will be that much better. In the spirit of not creating gratuitous work for others, I could try it out and send out something if it looks like it's noticeably easier to verify/review. thanks, -- John Hubbard NVIDIA