Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp225574imu; Tue, 27 Nov 2018 11:25:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/W18wpzj/VPKJN+f1uxhy4jDCDn0IUy5tCtoHxY3gS8IY6ouJpEZxzrDBdyzXBVC86WiEcO X-Received: by 2002:a63:9b11:: with SMTP id r17mr30539076pgd.416.1543346739346; Tue, 27 Nov 2018 11:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543346739; cv=none; d=google.com; s=arc-20160816; b=aRqvT7g9aDLCjfkcSSPiwvKv/QKlmGBte/i3WPG1PQ5IzOSXmJYA0F0KKXLjQ6FI41 K4EYbmLNV7VeuzaZONmg7BmJzPmwwnQPp0lXKWYW6R7FXVJuyG64c23FOKyprD9m78az /Wiwbsb5G8AZM6kIUyJVllZRyoybgQDKnAXONszWhJMOFFOu3zJWMtFKY6zFh4KTsza1 +mburjNGLD08zkFGUTL7ORuQRaZbJ2OqMraU4EFJA2Ce7RRbAtiS7tOIyG7s3S97RNIk NgM1LRS2M7gTOCvIhcpNxApISE1rFoYpRRMSgkqgOGSA0HX6BJgZmEkc3+mjV9sHwiOs rzUQ== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=KI7tsBdYG2plG44eYHqfMd4/hQuykHZbRsWytzHZjzo=; b=UCfUrpJYzyJ6QjKn9BPO/Iqbv3kiAZsaGuETvxnRAIiRm6zvlLP2PBU6EFPzIrdcBL P9OqNaPRufmq6pjnt7wVpsjq63rSX47TdD5vkm7gQ0IvqdxW11yCUQ8Eg61yTX0bksWI 37rPZdy9lmTSBnTGby8Fp5bOHKB4UqiHUXqFU6wJXOdwAmZoHkQJpqLdmMMABrZaFpq3 bTo75zZJHuSwh4ExRKKmnOuE4g1T1SX84Da0awSSsqNsVNsTeLVCUHg/dvz8KRpF16Ik cG9YErZy4Kbma3GChNRmUslPYbfRH9fVnViIaTTshjxdYxTwkqC2Bpk1Df4jKuIq5aeV wT0Q== 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 4si4825186pff.161.2018.11.27.11.25.24; Tue, 27 Nov 2018 11:25:39 -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 S1729543AbeK1C0E convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Nov 2018 21:26:04 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:48840 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729309AbeK1C0E (ORCPT ); Tue, 27 Nov 2018 21:26:04 -0500 X-Greylist: delayed 444 seconds by postgrey-1.27 at vger.kernel.org; Tue, 27 Nov 2018 21:26:03 EST Received: by unicorn.mansr.com (Postfix, from userid 51770) id E2002149B5; Tue, 27 Nov 2018 15:20:24 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Matthew Wilcox Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: fix insert_pfn() return value References: <20181127144351.9137-1-mans@mansr.com> <20181127150852.GA10377@bombadil.infradead.org> Date: Tue, 27 Nov 2018 15:20:24 +0000 In-Reply-To: <20181127150852.GA10377@bombadil.infradead.org> (Matthew Wilcox's message of "Tue, 27 Nov 2018 07:08:52 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox writes: > On Tue, Nov 27, 2018 at 02:43:51PM +0000, Mans Rullgard wrote: >> Commit 9b5a8e00d479 ("mm: convert insert_pfn() to vm_fault_t") accidentally >> made insert_pfn() always return an error. Fix this. > > Umm. VM_FAULT_NOPAGE is not an error. It's saying "I inserted the PFN, > there's no struct page for the core VM to do anything with". Which is > the correct response from a device driver which has called insert_pfn(). > > Could you explain a bit more what led you to think there's a problem here? Apparently some (not in mainline) driver code had been hastily converted to the vm_fault_t codes, and that is where the error is. Sorry for the noise. Please disregard this. (The quickest way to get the correct answer is still to send a bad patch.) > Also, rather rude of you not to cc the patch author when you claim to > be fixing a bug in their patch. Sorry about that. Blame the get-maintainers script. -- M?ns Rullg?rd