Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3808520imm; Mon, 8 Oct 2018 09:50:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV60tityzZXAuQk68p9S6Tm7U8OTLeW9+8Ryw+s7gJPpe6odgutbGU5dMPYRnuUFfkRrJqHrL X-Received: by 2002:a17:902:7482:: with SMTP id h2-v6mr25390372pll.228.1539017410726; Mon, 08 Oct 2018 09:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539017410; cv=none; d=google.com; s=arc-20160816; b=lrWMFxU3JNk0Vzj7dWsK774diaBzXV1/sYUWYcR228GmAwNTgD43RpgCl9flFc3NUQ 15axScPHBQU9YYeEX42Fl+0NNAz3MFy9ljLiyN9fYAnIcuaIeT3PP8uvW+K8/0m5WqgZ cN2XKIyZXKNd59t0j4K65nyf8+XmdmIkDdMue4ZmSKL4IGbF99maUtVJRQzMz32zqJlR 4CQgKJiCUtKEb0oTb7/TLefSSFa5Ahzu16GxkL9To/5YlAwYKqwhcGW4I9FEv8zabMRC EW8T61Grzrdil8qmTHHHMeUk+si+RPsCw7ElrQsq5x40/YzzApgFvIRhTqLYiXUbOqP+ 2sgA== 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=sMbodmTeqfLW9B/y7mhg/OBVaXCgwB1QQpDtXzs0QoI=; b=tRWEo1SlfKsiDeEmI68zpAkwFsG9z4WLxkEgaiDv/dIm03GVJrsquDWrVilAreBho3 MV8946NaBF9nOjNr+m6cMan/vUU2zOBZDcpIVrWOXlUh3Wh+0QwXjbZ+f1HN2ab5iq/i QyFEkikg/KOPwCa63HookDrrMxovryEwEA6bfK0LiSnfTETTtUKb4tbvvoWeCWJl3esT 52vmNLF6B5WWA3IUbWPGQAsH4fRHF0/z5lqRmkIZh6d88ncWRuZ5n0pN7Iytvwjls7i/ OVZhEbK1EmJVLlLUSCRbPQ5OY6Umxw1giKCFhPA44IhPmGaQUHIzAvIf1VT+Xjqf+yXt 9oRg== 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 f6-v6si18759745pgg.182.2018.10.08.09.49.56; Mon, 08 Oct 2018 09:50:10 -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 S1726692AbeJIACN (ORCPT + 99 others); Mon, 8 Oct 2018 20:02:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:57224 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726291AbeJIACN (ORCPT ); Mon, 8 Oct 2018 20:02:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 02C50B04A; Mon, 8 Oct 2018 16:49:34 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 300261E3614; Mon, 8 Oct 2018 18:49:34 +0200 (CEST) Date: Mon, 8 Oct 2018 18:49:34 +0200 From: Jan Kara To: john.hubbard@gmail.com Cc: Matthew Wilcox , Michal Hocko , Christopher Lameter , Jason Gunthorpe , Dan Williams , Jan Kara , linux-mm@kvack.org, LKML , linux-rdma , linux-fsdevel@vger.kernel.org, John Hubbard , Doug Ledford , Mike Marciniszyn , Dennis Dalessandro , Christian Benvenuti Subject: Re: [PATCH v3 3/3] infiniband/mm: convert put_page() to put_user_page*() Message-ID: <20181008164934.GB11150@quack2.suse.cz> References: <20181006024949.20691-1-jhubbard@nvidia.com> <20181006024949.20691-4-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181006024949.20691-4-jhubbard@nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 05-10-18 19:49:49, john.hubbard@gmail.com wrote: > From: John Hubbard > > For code that retains pages via get_user_pages*(), > release those pages via the new put_user_page(), or > put_user_pages*(), instead of put_page() > > This prepares for eventually fixing the problem described > in [1], and is following a plan listed in [2], [3], [4]. > > [1] https://lwn.net/Articles/753027/ : "The Trouble with get_user_pages()" > > [2] https://lkml.kernel.org/r/20180709080554.21931-1-jhubbard@nvidia.com > Proposed steps for fixing get_user_pages() + DMA problems. > > [3]https://lkml.kernel.org/r/20180710082100.mkdwngdv5kkrcz6n@quack2.suse.cz > Bounce buffers (otherwise [2] is not really viable). > > [4] https://lkml.kernel.org/r/20181003162115.GG24030@quack2.suse.cz > Follow-up discussions. > > CC: Doug Ledford > CC: Jason Gunthorpe > CC: Mike Marciniszyn > CC: Dennis Dalessandro > CC: Christian Benvenuti > > CC: linux-rdma@vger.kernel.org > CC: linux-kernel@vger.kernel.org > CC: linux-mm@kvack.org > Signed-off-by: John Hubbard Looks good to me. You can add: Reviewed-by: Jan Kara Honza -- Jan Kara SUSE Labs, CR