Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1189800imm; Wed, 20 Jun 2018 13:13:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJoeKxa8Rv+tLE3orkEKSJPwL3zG1rciViAPIX8IP37KDTzA/S5Y8n7x9XFZO1dErsVh1Tn X-Received: by 2002:a63:4d14:: with SMTP id a20-v6mr20314586pgb.46.1529525618801; Wed, 20 Jun 2018 13:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529525618; cv=none; d=google.com; s=arc-20160816; b=QGDZvY/TO7rkrSj21TMNx4mmYaNDyIFJWjXYLayewncBVof+OMODIwpUZSYyLmdi80 mFMHrQH2U9XKST7iB43yn1mLqDnwykcASXje8ntIoyTWmO+226d4KoQGv3m8T5ERL8Hu 8SVXYprHh0iis+ltWG3Zryue+sGH0a9crIDCrFp5twgwMMvuRtcMFxOf0MqEE6g6hX/J 296kRf4JiPwLzYLVFnZoOjgIOqNBYmLOpHJozOMpIe0D5u/WfXqnxa+kLckHe0yt28NV dv9qhWwrthHYwf7UVNBo3W9zNJndAri+t0W2XGeaunZjuzuEDfTKZcsHyrv0J2v3mB0D T5Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date :arc-authentication-results; bh=/+BsFaVxqycxFXgRBV4xBFCSVaJStRN3j/PYWgenASk=; b=FMqlPUOt1NfW4uZAITg8BgT/l3AcJzfLml8LShbeJH25yJWLsoEVD/o4F6Gi5SHf4O ABMrPICUv+c34E4AAhA/rTonve4NVjRYDQ/7uPCSNAPSCXN0LSFQsm5G+D47CJI/HWLu dofeKFZ8JNXmh9T8iOMeoOL92CJXayKc87/gnOQpV/352a8lX7hIMLKzmZes4KgXw4aB Gi8bUkIpDDjXrcbLn2jDjC+alFZWBOMrFEFNrlpgsupOPKFMGADq14O1hMzn0gLp5e+H C9RRGOxbd3aTUPdFdAMcEomFNZJYzrsGA3UeCNkz9wNNA1nZiCbH5IsCxoSZuzMqz8Wa Xikw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13-v6si2636478pgt.554.2018.06.20.13.13.24; Wed, 20 Jun 2018 13:13:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933127AbeFTUMn (ORCPT + 99 others); Wed, 20 Jun 2018 16:12:43 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58278 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932929AbeFTUMm (ORCPT ); Wed, 20 Jun 2018 16:12:42 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5KK8WX1087463 for ; Wed, 20 Jun 2018 16:12:41 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jqwp805nh-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 20 Jun 2018 16:12:41 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 Jun 2018 14:12:41 -0600 Received: from b03cxnp08026.gho.boulder.ibm.com (9.17.130.18) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 20 Jun 2018 14:12:39 -0600 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5KKCcQo61669494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 20 Jun 2018 13:12:38 -0700 Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6BC3913604F; Wed, 20 Jun 2018 14:12:38 -0600 (MDT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DF4DE136051; Wed, 20 Jun 2018 14:12:37 -0600 (MDT) Received: from p8tul1-build.aus.stglabs.ibm.com (unknown [9.3.141.206]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTPS; Wed, 20 Jun 2018 14:12:37 -0600 (MDT) Date: Wed, 20 Jun 2018 15:12:37 -0500 From: "Matthew R. Ochs" To: Souptick Joarder Cc: willy@infradead.org, manoj@linux.vnet.ibm.com, ukrishn@linux.vnet.ibm.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] scsi: cxlflash: Change return type for fault handler References: <20180620182507.GA21775@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180620182507.GA21775@jordon-HP-15-Notebook-PC> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 x-cbid: 18062020-0012-0000-0000-000016807141 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009228; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000265; SDB=6.01049860; UDB=6.00537980; IPR=6.00828832; MB=3.00021764; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-20 20:12:40 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18062020-0013-0000-0000-00005365623B Message-Id: <20180620201237.GA19354@p8tul1-build.aus.stglabs.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-20_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806200219 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 20, 2018 at 11:55:07PM +0530, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_fault_t will become a distinct type. > > Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t") > > Previously, VM_FAULT_NOPAGE was returned without verifying > return value of vm_insert_pfn. The new inline vmf_insert_pfn() > will address this issue by returning correct VM_FAULT_* type > from fault handler. > > Signed-off-by: Souptick Joarder Looks good. Acked-by: Matthew R. Ochs