Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp577828imu; Thu, 22 Nov 2018 02:07:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xx8XycawQfinw7BiFDoH0XF69pD2zrQ8vW+lrZ54wxfLfIDFqnhHt8yLJG7vEKWlY+j65M X-Received: by 2002:a17:902:e085:: with SMTP id cb5mr10536720plb.24.1542881265038; Thu, 22 Nov 2018 02:07:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542881265; cv=none; d=google.com; s=arc-20160816; b=kjhTuZBDAF7mCIZkTKt1LjpqWCZvUAq9ztQgCupKsAitRVwKap5QDFtTSvJMrSXl2Y VUCiJlN1lEmIvEc6crX17SAoAG6F4GmoC7LPrBMBziiVln2cJzVhnCxaUvD79rVOAuSc fTJtRg/77Tw+0V3SwKP/ZDhxuREEc4KkiCKBRmsF6G1T/YHhPbqIgRt4V5ghqO6gsJdg xJmS+OcRn+kWGgZHXxydsssM7Wz1kSEfSEC8sDFSMEI3w3oz/0ZTORnAWb8/0IwBnqdk cC3i9Zjpk+l/wWnToQND29h5MOuj+68tMedfT82t1yinekmUrmvkML3xpVwayfE/WJ/s 4f3w== 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=lla1RUEMo9PVJjBpjrDpdA9ue2rrIHxtktKWmkd8/4U=; b=M/Kb8FSugxH7Hri2XSnPqHu3Tkj9iTMxvSSExPvumxfwwt2SkSi6hw4PWXzbza52g+ FWL0hJ26vDRakJ5Tfandrqk86eEQu1H8n4Ufge5WmycvQZNXI34rimIDZInM+gwORTbA PdGyQBNMRw4V+ERhmQroDG1P9nfpv/WWNOptPi6lXI0IiIKshpSV5JY4vLHFHJZv38wz ZykC/+my4CUDuNoxUqesNn5LRSCG7Pgiph3X6EGsxx6vUgAlFrow0D4zdJaXyReKe/L3 G+Mg/FfHCfX0HV4wYo+9XE5kYOOZw/z88helJXm4P/1ooQ3cdbGL2QOJRORH29EhyZ2Y 6xpA== 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 20si46991926pgg.271.2018.11.22.02.07.26; Thu, 22 Nov 2018 02:07:45 -0800 (PST) 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 S2389985AbeKVJUb (ORCPT + 99 others); Thu, 22 Nov 2018 04:20:31 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38464 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387447AbeKVJUa (ORCPT ); Thu, 22 Nov 2018 04:20:30 -0500 Received: from localhost.localdomain (c-24-6-170-16.hsd1.ca.comcast.net [24.6.170.16]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2067E8E3; Wed, 21 Nov 2018 22:44:05 +0000 (UTC) Date: Wed, 21 Nov 2018 14:44:04 -0800 From: Andrew Morton To: john.hubbard@gmail.com Cc: linux-mm@kvack.org, LKML , John Hubbard , Dan Williams , "Kirill A . Shutemov" , Dave Hansen Subject: Re: [PATCH] mm/gup: finish consolidating error handling Message-Id: <20181121144404.efdab6dbccd7780034a55e1d@linux-foundation.org> In-Reply-To: <20181121081402.29641-2-jhubbard@nvidia.com> References: <20181121081402.29641-1-jhubbard@nvidia.com> <20181121081402.29641-2-jhubbard@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 Wed, 21 Nov 2018 00:14:02 -0800 john.hubbard@gmail.com wrote: > Commit df06b37ffe5a4 ("mm/gup: cache dev_pagemap while pinning pages") > attempted to operate on each page that get_user_pages had retrieved. In > order to do that, it created a common exit point from the routine. > However, one case was missed, which this patch fixes up. > > Also, there was still an unnecessary shadow declaration (with a > different type) of the "ret" variable, which this patch removes. > What is the bug which this supposedly fixes and what is that bug's user-visible impact?