Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4579365ybi; Mon, 15 Jul 2019 11:11:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1VekvOySmT37O3a+cgLCCXX6m64Zx57UCMVcRSPbcFz8a/QNJY3xw7MhWLeMq/VUpSJPR X-Received: by 2002:a63:f817:: with SMTP id n23mr28570012pgh.35.1563214260843; Mon, 15 Jul 2019 11:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563214260; cv=none; d=google.com; s=arc-20160816; b=fa/yA0QtemSfvHQbgbgiq+gCRqLr3BnU6bdbeczHdBUXGqNojF8SoDgYoAUZynrqwx DT6lq7KXlFZX1w6TEX4qaxq5qDcXOwzjjNtGABxvtWYqi2iCV6s1d+6Z5ukNWtPvqjwa FdyZyJ5+X/qF1u+eQHpVzYux8MrxgIkVl/j+ZmEomM6lg7JsFpBKYSKVZZuULjCLRRiJ 97SaMzw4XMFXKW6k6jb+rRc3XU6N1FghfiXulm+ABrmhjvJFW3993a+xMrtxYI+tj4YM prJZees5tHSJrbbMEAL4144B9jOMnII2WDok1X+nwOdlVMQzvQbhKDJLmHWO2fxH5R0H Zbfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6wwgTZKS6jiJbEQByxUeIS9VuTtgekUJNWGw3cfIDgA=; b=YCGfCAu8NPUdtbgNU/qaViY5XYtsohe1iZKD1GNlNjFWNzACfI+MOOlJfp0Oc/C/Kv rdZ6IlkkeWqmPGJAJLkykzSErwFe3LgdBJ6SPYEED7JGEP/hZ1dihetvLHw6Lqv/VnjG /ofXVHBlQ3gbs9uZaGKDG/4Q43xlM1WqLnZY+yd0Nl9KMk+DDLGYGNE7b9YsIjJzuwzZ /mdh9wfb+djyfojRPWLdyGsxJ+pk3tjxJuJ5Ys2xe808OB51PUdkgrueG1teJ2QaSm+M TkoqBjj3EerzN/2bIh+YMJR+6KGOYpCOcpOr2ty2y0FQdCEvBxzVebwikBcjOUfKrPaw vNcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="Ok4pi/aW"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si17102760pff.277.2019.07.15.11.10.44; Mon, 15 Jul 2019 11:11:00 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b="Ok4pi/aW"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731539AbfGOSKY (ORCPT + 99 others); Mon, 15 Jul 2019 14:10:24 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:18288 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729135AbfGOSKX (ORCPT ); Mon, 15 Jul 2019 14:10:23 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 15 Jul 2019 11:10:22 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 15 Jul 2019 11:10:22 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 15 Jul 2019 11:10:22 -0700 Received: from [10.110.48.28] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 15 Jul 2019 18:10:21 +0000 Subject: Re: [PATCH] mm/gup: Use put_user_page*() instead of put_page*() To: Bharath Vedartham CC: , , Mauro Carvalho Chehab , Dimitri Sivanich , Arnd Bergmann , Greg Kroah-Hartman , Alex Williamson , Cornelia Huck , Jens Axboe , Alexander Viro , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , "David S. Miller" , Alexei Starovoitov , Daniel Borkmann , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Enrico Weigelt , Thomas Gleixner , Alexios Zavras , Dan Carpenter , Max Filippov , Matt Sickler , "Kirill A. Shutemov" , Keith Busch , YueHaibing , , , , , , , , , , , Jason Gunthorpe References: <1563131456-11488-1-git-send-email-linux.bhar@gmail.com> <20190715065654.GA3716@bharath12345-Inspiron-5559> X-Nvconfidentiality: public From: John Hubbard Message-ID: <1aeb21d9-6dc6-c7d2-58b6-279b1dfc523b@nvidia.com> Date: Mon, 15 Jul 2019 11:10:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190715065654.GA3716@bharath12345-Inspiron-5559> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1563214222; bh=6wwgTZKS6jiJbEQByxUeIS9VuTtgekUJNWGw3cfIDgA=; 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=Ok4pi/aW8U3yjBXqydhqyft24fqK5kLZb9vqN2v2ZscUA+LO0TUEntZeQFXwWM9mI LSrTQjPbgBURTVuTHsTSQsCgjCENvKuaFyzKLw2XoaWgUj+WvDafd8mw0VAnM6FcQ+ +2MQLOvD9ImnAuT4gp9Ms08kG21euR6h30TCsuEWJ6lWOGD9RwjSXqHq846/IAB2oQ 2xzmb3rUlMkYnUIwMFCjvBWCfVAdsKWykA4pdAEfJW4vFSKPaT2m4A9YAlaep+ltqs dnlEdJPni78MkMkdBjFMKskTkkSUDUGV5x/f03KwhrKwKXSc4NX56A3yXabbvoTqDL 9Z2efhUFKhX1Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/14/19 11:56 PM, Bharath Vedartham wrote: > On Sun, Jul 14, 2019 at 04:33:42PM -0700, John Hubbard wrote: >> On 7/14/19 12:08 PM, Bharath Vedartham wrote: [...] >> 1. Pull down https://github.com/johnhubbard/linux/commits/gup_dma_core >> and find missing conversions: look for any additional missing >> get_user_pages/put_page conversions. You've already found a couple missing >> ones. I haven't re-run a search in a long time, so there's probably even more. >> a) And find more, after I rebase to 5.3-rc1: people probably are adding >> get_user_pages() calls as we speak. :) > Shouldn't this be documented then? I don't see any docs for using > put_user_page*() in v5.2.1 in the memory management API section? Yes, it needs documentation. My first try (which is still in the above git repo) was reviewed and found badly wanting, so I'm going to rewrite it. Meanwhile, I agree that an interim note would be helpful, let me put something together. [...] >> https://github.com/johnhubbard/linux/commits/gup_dma_core >> >> a) gets rebased often, and >> >> b) has a bunch of commits (iov_iter and related) that conflict >> with the latest linux.git, >> >> c) has some bugs in the bio area, that I'm fixing, so I don't trust >> that's it's safely runnable, for a few more days. > I assume your repo contains only work related to fixing gup issues and > not the main repo for gup development? i.e where gup changes are merged? Correct, this is just a private tree, not a maintainer tree. But I'll try to keep the gup_dma_core branch something that is usable by others, during the transition over to put_user_page(), because the page-tracking patches are the main way to test any put_user_page() conversions. As Ira said, we're using linux-mm as the real (maintainer) tree. thanks, -- John Hubbard NVIDIA