Message ID | 20190802022005.5117-6-jhubbard@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 90592746 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 2 Aug 2019 02:20:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81CF928701 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 2 Aug 2019 02:20:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72B5A2877B; Fri, 2 Aug 2019 02:20:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F275B2877B for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 2 Aug 2019 02:20:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 61D6E6B000E; Thu, 1 Aug 2019 22:20:21 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 5A6346B0010; Thu, 1 Aug 2019 22:20:21 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3D37C6B0266; Thu, 1 Aug 2019 22:20:21 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by kanga.kvack.org (Postfix) with ESMTP id 08ECF6B000E for <linux-mm@kvack.org>; Thu, 1 Aug 2019 22:20:21 -0400 (EDT) Received: by mail-pg1-f200.google.com with SMTP id m17so37489366pgh.21 for <linux-mm@kvack.org>; Thu, 01 Aug 2019 19:20:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=pwlX9Z4uen7Ts0pUwmBLgDhtihaB/D0UZN8JDoMe4ZA=; b=NRMUcULKNxQewzXrDbU9TD+2bxY/9kvkWhZrBcJLfUkAZf/ttBOppZXGV/LE9UnWBR NQqJbFrhh+0y9QA3nKDIKqrRiSm/OvkQ2fR5PP97LN3aC/eA5Q6XBsaFz5wgx4YZO60J j+8g50aEIJGt1dLBzKurUWy5GKznuOFfvDtYZeULiIYDbUzyuHUvthBCh4SwZmf8OxiI Gjzkbvp4tKmGNlIjIUnzWSKyF/tciiC2PAZm+RThBM9QXmzJ5pd7Oqi2iNPaJbtDI1Tj qoqXZyi+p04rCmuSjTY24+kLpQIHSfqyxX2TjQihbi64PwHl6htQMKDkqastFs3X//J+ DfWQ== X-Gm-Message-State: APjAAAUOsVKQsOejz9mYvqhK7CrPA1q0l7IhZbNVE6mCTPVU2vWwsdio TWoCiVApkhl4JCkf80VCypNaAOYSX+77vnZ+h/SMqRlkZOvsqUAk7xt+18h9lLrXwBp7ZkaBtBc y8LTLEZ8DjT68OxOt0hkUbgfk7lNvJIeSyLK170CSP2EK686avkBGJLUtj27KaRcwBQ== X-Received: by 2002:a17:90a:fa12:: with SMTP id cm18mr1846362pjb.137.1564712420732; Thu, 01 Aug 2019 19:20:20 -0700 (PDT) X-Received: by 2002:a17:90a:fa12:: with SMTP id cm18mr1846315pjb.137.1564712420087; Thu, 01 Aug 2019 19:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564712420; cv=none; d=google.com; s=arc-20160816; b=1FoCN3UHSm6Ir86nNgT+iwXChylMzvZyQ1qdXuljihN3icQEI01CiurbXmEUbJP+Zp wJ+VNnSjirdRlUwGZLIHMVFBlKDY/b/LmRhhDsGewe87jVSVcp0991eWRKtNIPjjCm4u NgvH++LV6zX+1xaAIuKuG5UTAnZYASd1jNXcxnV1e7pS6rOIACIpNSFNO+MULinaa8Tg QV3eWU1AwZLcy8qMYOHfB5jxqDuWgWkCCGHWsV67FlUCbl8Xgi87PzztPPXVZdAwLc2T lzJ5JhtTmvYa0zwAdb3WXHOwM4xsGhlh0kYcACezOsvujwSDfnDhQcaleoewrZLwtnG0 C/Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=pwlX9Z4uen7Ts0pUwmBLgDhtihaB/D0UZN8JDoMe4ZA=; b=Ogd6eFk4qH3PUXlRMpRyGFwsSXMg3sc+mzxUMwzspfROX4KyPKuL3nLcM7044EScNM 0eAluktA4SP8WBKcblOf8VTOcHZfAZAjgeAcvpB4cSlsluKDC0C7IlOudCrJe8PkbaFT mW6f8CWI1fEBVwlQsJQASz2CBqpgVNuV4F701BiJR696krjQ13JRhiGTAl/ND+qIucD6 bCKFMtg9/BdNjAJElia8Tjvq4uZAEPtvUrJd9O1C4vy4cHv6qylvEi5KlfXDti1d+qui 2npA7/pc4EnBRePOu0HyW6pa+1rK8wRCzGaCveDFvWmbQGHj2lR/sXucCor37DPo9M4I TcTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cXVKp+Dg; spf=pass (google.com: domain of john.hubbard@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.hubbard@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o11sor88973814plk.18.2019.08.01.19.20.19 for <linux-mm@kvack.org> (Google Transport Security); Thu, 01 Aug 2019 19:20:20 -0700 (PDT) Received-SPF: pass (google.com: domain of john.hubbard@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cXVKp+Dg; spf=pass (google.com: domain of john.hubbard@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.hubbard@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pwlX9Z4uen7Ts0pUwmBLgDhtihaB/D0UZN8JDoMe4ZA=; b=cXVKp+Dgxhj784uTGfvPyG1yYJG0TluF022pFhUyHpRdik351Pihe9of7XZeuP0Vwt h/i6WlGcIKVNKfHSeDSEUHKJX3j3X/NshFFci/lhMH4/SgEjIokRiJ+YouFN6I+GBm4y zUjQOfq6557LaDfB1SW3dyyvMia7x+7GSnkQpaKA5dSoAhqdxSb/NVVqK5YIHjTvA0IX 6H4EsdOomJX2kg/hRhJVVxm3sX/zmn87r9Fum/tKlkDFYTmAnDUVoJ7rlCgUuzHH8DwS QuPnhojZwqXr2XSW6HhlWm7VIgfEjZi50Ea1bZ4R+3m+Y3fnnezSFaVuWGen2JpYqC8g nI5w== X-Google-Smtp-Source: APXvYqzjw3eL+xmFFeLCY8pAtt0uU+dboybjV0Tj2XnMiuSE8KPva7u+GlTOi6iXLJ1oNBX2ZlUCDA== X-Received: by 2002:a17:902:a413:: with SMTP id p19mr129958448plq.134.1564712419691; Thu, 01 Aug 2019 19:20:19 -0700 (PDT) Received: from blueforge.nvidia.com (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id u9sm38179744pgc.5.2019.08.01.19.20.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 19:20:19 -0700 (PDT) From: john.hubbard@gmail.com X-Google-Original-From: jhubbard@nvidia.com To: Andrew Morton <akpm@linux-foundation.org> Cc: Christoph Hellwig <hch@infradead.org>, Dan Williams <dan.j.williams@intel.com>, Dave Chinner <david@fromorbit.com>, Dave Hansen <dave.hansen@linux.intel.com>, Ira Weiny <ira.weiny@intel.com>, Jan Kara <jack@suse.cz>, Jason Gunthorpe <jgg@ziepe.ca>, =?utf-8?b?SsOpcsO0?= =?utf-8?b?bWUgR2xpc3Nl?= <jglisse@redhat.com>, LKML <linux-kernel@vger.kernel.org>, amd-gfx@lists.freedesktop.org, ceph-devel@vger.kernel.org, devel@driverdev.osuosl.org, devel@lists.orangefs.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-block@vger.kernel.org, linux-crypto@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-rdma@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-xfs@vger.kernel.org, netdev@vger.kernel.org, rds-devel@oss.oracle.com, sparclinux@vger.kernel.org, x86@kernel.org, xen-devel@lists.xenproject.org, John Hubbard <jhubbard@nvidia.com>, Joerg Roedel <joro@8bytes.org>, Paolo Bonzini <pbonzini@redhat.com>, =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= <rkrcmar@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, "H. Peter Anvin" <hpa@zytor.com> Subject: [PATCH 05/34] drm/etnaviv: convert release_pages() to put_user_pages() Date: Thu, 1 Aug 2019 19:19:36 -0700 Message-Id: <20190802022005.5117-6-jhubbard@nvidia.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190802022005.5117-1-jhubbard@nvidia.com> References: <20190802022005.5117-1-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-NVConfidentiality: public Content-Transfer-Encoding: 8bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
put_user_pages(): miscellaneous call sites
|
expand
|
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem.c b/drivers/gpu/drm/etnaviv/etnaviv_gem.c index e8778ebb72e6..a0144a5ee325 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem.c @@ -686,7 +686,7 @@ static int etnaviv_gem_userptr_get_pages(struct etnaviv_gem_object *etnaviv_obj) ret = get_user_pages_fast(ptr, num_pages, !userptr->ro ? FOLL_WRITE : 0, pages); if (ret < 0) { - release_pages(pvec, pinned); + put_user_pages(pvec, pinned); kvfree(pvec); return ret; } @@ -710,7 +710,7 @@ static void etnaviv_gem_userptr_release(struct etnaviv_gem_object *etnaviv_obj) if (etnaviv_obj->pages) { int npages = etnaviv_obj->base.size >> PAGE_SHIFT; - release_pages(etnaviv_obj->pages, npages); + put_user_pages(etnaviv_obj->pages, npages); kvfree(etnaviv_obj->pages); } }