Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1532278imm; Wed, 10 Oct 2018 16:44:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV61iN+m0ZpqixQYMNkwIxa9elKp7IWtf4OxYaovf4KoGQqklilyGz9UArN3AEOhngRZ9nBlX X-Received: by 2002:a17:902:7d98:: with SMTP id a24-v6mr1537677plm.271.1539215093253; Wed, 10 Oct 2018 16:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539215093; cv=none; d=google.com; s=arc-20160816; b=r446LSTz4HnU1CDxdlj9YFR0uOOLkKpcBjPGRBFAGF1/x6Ld3Ci7JkYKiPQLzafiZ+ muFjpimKlfnknQI/JTN5yWVe+99Aq2LLPSEPeHBY1WyS69GmTJ5hIopwr4nOyKDcgerH nn7cHsgYovNVMIO+K9Y4ZRyflx0QnW0Z8xDA50etbClVGRWg/zjwfSNdm/HwC7VOeLeJ C7T09RBci9Zzeyzim4btPTL2tIj7LNntrHDV7ZByNSln/pOBkfuzOlfLszwQ7FZ2C9Cg eJPB8LBLCI7naaSH1hZLHtTuyKSGQisTrCPUIBBSZdSVd3DEVSddHf2Butr8kfDxfkhB OGOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=C51p2BDAwKRxp5fnN/ubbDfjkdYVn/xkRWXU72hA38U=; b=uALvGBofFHZWUqNhcsnNrbjWD4DFvD4LGuGCwfiQ3EKZASQKGWEE2R6vamM/eXgzZ+ UeHN89BZp/J2OXpUh9iwOcZiWTItjlomRJvoT4jCSzTqDggHTC54o91NuxzFGFwV0MmU WOabQc/CO+i1ZUf0kZvw1hcoFQlyUZJfXn9q3iHmJIS/XnvMqsypGm2A8kT1iiC+2ytD b+dhKBXQXIIsaMQSagajD84CZ5cFrBqmhkx6IRX7bClZABaFLEVnoQ4B3OTuohlh8wlZ JNhLYf5VxtPJWjrlLERDgdW+WFhSF20A40v4IXcTLQXrmCt8TTd3QG7tXtafobnurTSP iD+g== 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 207-v6si29001895pfu.273.2018.10.10.16.44.37; Wed, 10 Oct 2018 16:44:53 -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 S1726249AbeJKHIa (ORCPT + 99 others); Thu, 11 Oct 2018 03:08:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54146 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbeJKHI3 (ORCPT ); Thu, 11 Oct 2018 03:08:29 -0400 Received: from localhost.localdomain (c-24-4-154-175.hsd1.ca.comcast.net [24.4.154.175]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D7D3BA85; Wed, 10 Oct 2018 23:44:00 +0000 (UTC) Date: Wed, 10 Oct 2018 16:43:59 -0700 From: Andrew Morton To: John Hubbard Cc: Jan Kara , , Matthew Wilcox , Michal Hocko , Christopher Lameter , Jason Gunthorpe , Dan Williams , , LKML , linux-rdma , , Al Viro , Jerome Glisse , Christoph Hellwig , Ralph Campbell Subject: Re: [PATCH v4 2/3] mm: introduce put_user_page*(), placeholder versions Message-Id: <20181010164359.292d938b51cbd57b38a1bd99@linux-foundation.org> In-Reply-To: <62492f47-d51f-5c41-628c-ff17de21829e@nvidia.com> References: <20181008211623.30796-1-jhubbard@nvidia.com> <20181008211623.30796-3-jhubbard@nvidia.com> <20181008171442.d3b3a1ea07d56c26d813a11e@linux-foundation.org> <20181009083025.GE11150@quack2.suse.cz> <20181009162012.c662ef0b041993557e150035@linux-foundation.org> <62492f47-d51f-5c41-628c-ff17de21829e@nvidia.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Oct 2018 17:32:16 -0700 John Hubbard wrote: > > I'm not really understanding. Patch 3/3 changes just one infiniband > > driver to use put_user_page(). But the changelogs here imply (to me) > > that every user of get_user_pages() needs to be converted to > > s/put_page/put_user_page/. > > > > Methinks a bit more explanation is needed in these changelogs? > > > > OK, yes, it does sound like the explanation is falling short. I'll work on something > clearer. Did the proposed steps in the changelogs, such as: > > [2] https://lkml.kernel.org/r/20180709080554.21931-1-jhubbard@nvidia.com > Proposed steps for fixing get_user_pages() + DMA problems. > > help at all, or is it just too many references, and I should write the words > directly in the changelog? > > Anyway, patch 3/3 is a just a working example (which we do want to submit, though), and > many more conversions will follow. But they don't have to be done all upfront--they > can be done in follow up patchsets. > > The put_user_page*() routines are, at this point, not going to significantly change > behavior. > > I'm working on an RFC that will show what the long-term fix to get_user_pages and > put_user_pages will look like. But meanwhile it's good to get started on converting > all of the call sites. I see. Yes, please do put all of it into the changelog[s].