From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49750 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726402AbgBRQQH (ORCPT ); Tue, 18 Feb 2020 11:16:07 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01IFxwo7137697 for ; Tue, 18 Feb 2020 11:16:05 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2y6b570ccb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Feb 2020 11:16:05 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 18 Feb 2020 16:16:03 -0000 Subject: Re: [PATCH v2 01/42] mm:gup/writeback: add callbacks for inaccessible pages References: <20200214222658.12946-1-borntraeger@de.ibm.com> <20200214222658.12946-2-borntraeger@de.ibm.com> <107a8a72-b745-26f2-5805-c4d99ce77b35@redhat.com> <20200218154610.GB27565@linux.intel.com> <20200218160242.GB1133@willie-the-truck> From: Christian Borntraeger Date: Tue, 18 Feb 2020 17:15:57 +0100 MIME-Version: 1.0 In-Reply-To: <20200218160242.GB1133@willie-the-truck> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Message-Id: Sender: linux-s390-owner@vger.kernel.org List-ID: To: Will Deacon , Sean Christopherson Cc: David Hildenbrand , Janosch Frank , Andrew Morton , KVM , Cornelia Huck , Thomas Huth , Ulrich Weigand , Claudio Imbrenda , linux-s390 , Michael Mueller , Vasily Gorbik , Andrea Arcangeli , linux-mm@kvack.org On 18.02.20 17:02, Will Deacon wrote: > On Tue, Feb 18, 2020 at 07:46:10AM -0800, Sean Christopherson wrote: >> On Tue, Feb 18, 2020 at 09:27:20AM +0100, David Hildenbrand wrote: >>> On 17.02.20 12:10, Christian Borntraeger wrote: >>>> So yes, if everything is setup properly this should not fail in real life >>>> and only we have a kernel (or firmware) bug. >>>> >>> >>> Then, without feedback from other possible users, this should be a void >>> function. So either introduce error handling or convert it to a void for >>> now (and add e.g., BUG_ON and a comment inside the s390x implementation). >> >> My preference would also be for a void function (versus ignoring an int >> return). > > The gup code could certainly handle the error value, although the writeback > is a lot less clear (so a BUG_ON() would seem to be sufficient for now). Sean, David. Can we agree on merging patch 39?