Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2376060imm; Mon, 28 May 2018 07:01:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr6t0qL/bMHaifWeU4McHXul9DAFPm4hAtGEayt5gQHvMgxZ1ZBHzho1IMN0p3eNIDJNDka X-Received: by 2002:a63:7904:: with SMTP id u4-v6mr10774186pgc.143.1527516066641; Mon, 28 May 2018 07:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527516066; cv=none; d=google.com; s=arc-20160816; b=u6Q06HCBfCO9lH2x5EzW6CBjSLg9GznnO+BO1gAEhCZTRQTW6vFIwpFogcgBYD1Vto anoM37bBVGmmuvQQ1J0vO2zNyqCDOVUenGQYqAm/xnPm6QO8KHPeA9KHTvrT+u4bs2tD aDjO5YCESYdUTTL5ztPkaYerah57OmNy2xcV9Yd4p/jsKfwVh2CQt2c3LoGiSiVqU1yD y3GXLg4w7wNtv0FH5ECB+2sZWYij9wuPDct+NpoPJ5gdOWqtc75wfXAP8cu9DZxFSy/j JiQF4UJifCxgS9i3ulczrBaHUDxzQ/DPjUkGcWt5SmNik7yye7aCXztc5TuZPRcPc2kn i+JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=yTr6q9e/QTuXLEQUnBWM9W2RhEvUoGzE8dzOXqLlO8Y=; b=aTT0qk9icY13G6BHDNmNZKn+4Po4yTGrqIq6I8dj97WyrM3V2m0Dubo/OBBI3gQfSR L0cZUiwDx5MmeqC8Uhahs+hV2iiElL2CjYhDGUpcc8WjmuFN5WPup+YTXacicbBB7OKb ZI5iPIcFF8onAreHLDySFNR4zeZ/VjN3skMHI7JqWwmpNLsAK1AONlbmdc8c7ICXeZjr pZ1nKe/kriNPBMb0iSWAl4o7RQ89HIVsX9sXMfZWl0VADtOFa8fcH5j/VEPgYJawAlZu ppXkkIRvASawmdkIS/5sOlaDBevV/P31PZI9vlhE2aDLMOvgkfR6klz9utr7HipZVTBL bxtg== 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 m63-v6si28907511pld.429.2018.05.28.07.00.51; Mon, 28 May 2018 07:01:06 -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 S939183AbeE1OAH (ORCPT + 99 others); Mon, 28 May 2018 10:00:07 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:59324 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937454AbeE1OAD (ORCPT ); Mon, 28 May 2018 10:00:03 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4SDwrRt100663 for ; Mon, 28 May 2018 10:00:03 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2j8gy05gjg-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 28 May 2018 10:00:03 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 28 May 2018 15:00:00 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 28 May 2018 14:59:57 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4SDxuKJ25821434; Mon, 28 May 2018 13:59:56 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5F1CD11C050; Mon, 28 May 2018 14:50:55 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 094A511C04C; Mon, 28 May 2018 14:50:55 +0100 (BST) Received: from oc3548334886.ibm.com (unknown [9.152.212.155]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 28 May 2018 14:50:54 +0100 (BST) Subject: Re: [PATCH 4.14 199/496] scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte() To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Bart Van Assche Cc: stable@vger.kernel.org, Doug Gilbert , Hannes Reinecke , "Martin K. Petersen" , Sasha Levin References: <20180528100319.498712256@linuxfoundation.org> <20180528100328.325324152@linuxfoundation.org> From: Steffen Maier Date: Mon, 28 May 2018 15:59:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180528100328.325324152@linuxfoundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18052813-0040-0000-0000-0000045E371D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18052813-0041-0000-0000-00002102A40B Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-28_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 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805280170 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org question: drop because of upstream's cbe095e2b584 ("Revert "scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()"") Fixes: e39a97353e53 ("scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()") as in stable-queue's c40541008b93 ("drop a scsi patch from 4.14") ? On 05/28/2018 11:59 AM, Greg Kroah-Hartman wrote: > 4.14-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Hannes Reinecke > > [ Upstream commit e39a97353e5378eb46bf01679799c5704d397f32 ] > > When converting __scsi_error_from_host_byte() to BLK_STS error codes the > case DID_OK was forgotten, resulting in it always returning an error. > > Fixes: 2a842acab109 ("block: introduce new block status code type") > Cc: Doug Gilbert > Signed-off-by: Hannes Reinecke > Reviewed-by: Douglas Gilbert > Signed-off-by: Martin K. Petersen > Signed-off-by: Sasha Levin > Signed-off-by: Greg Kroah-Hartman > --- > drivers/scsi/scsi_lib.c | 2 ++ > 1 file changed, 2 insertions(+) > > --- a/drivers/scsi/scsi_lib.c > +++ b/drivers/scsi/scsi_lib.c > @@ -720,6 +720,8 @@ static blk_status_t __scsi_error_from_ho > int result) > { > switch (host_byte(result)) { > + case DID_OK: > + return BLK_STS_OK; > case DID_TRANSPORT_FAILFAST: > return BLK_STS_TRANSPORT; > case DID_TARGET_FAILURE: > > -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294