Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2836534imm; Thu, 24 May 2018 17:13:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpoGyHE599kuF4WXU51VRaErc4aa6xy0hhiEr4B5X6EcPtJb50QnoJzwxmLBBaPxB2yFS5U X-Received: by 2002:a62:7002:: with SMTP id l2-v6mr184102pfc.40.1527207219488; Thu, 24 May 2018 17:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527207219; cv=none; d=google.com; s=arc-20160816; b=HZRaOVMf+j7jlS0Wgra9DFZhhmM2wVAb8ITMkpapVpnHIkVG44iBEkOA8cDg0r58GG jzbd9eiHuO0cd+O8MHzwh1kb+9GMRtw9gvqX3L4tdajDxnHut83X8xhk9WQ4ofVAgWHc hV8g1ueimA0nAbcOQeGpBLUFybg25Tn9DUqKymQmiR8lH3b4C5SV/FDglggzbxNT0mcB JOY8YXpR+RFJH3z4a8hGgZ8ZZBlfn23HhMMCSMZIv1A8AvSogLPWaoiedFNZJ+PHIGzM Jcnl5w1ZyPPgagVMy743SilPBvWQgqhFKdTzVgMzKJKrIKyx5qkb85jZLrxUre7AKh/1 qe6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=xTPXWQwkcAwGqnYoUCTD+7HBI/lWOC8UvQ8evhVA40c=; b=Ac1xEsO4iOP273ZzILaG2Qxd5puHqtNKvOcPwATeZpOYVbPNNS7GSC1VDHx5JWWPKb pk71EPvB3DVJQ+qJzBcJOMEtK6NERnOFu3jLbweEnAUjTaK6lS2tFaPIfQQnRyKuDn6o tB/Ch4ZOsCrbROdW9NYJmk+rsEKGq3YKYsg8hYO6IwrdX5OsgW5DHr39+y2G8zW4cUm5 KMRQvbg8S0sxT9aMWTWq9jtJSmD4WEKoafPSr8qyGYyWAgn2KfZi2USnKQ9KwIu8uhJK DrcVJcm5vQVsoc0+KRnKm0rDBk+oDb4cYpgydp4ODo9KDMBcG3pf8ycRFdA7fnMvayb8 Yblg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fV0eBgIJ; 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 e9-v6si22966728plk.61.2018.05.24.17.13.24; Thu, 24 May 2018 17:13:39 -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; dkim=pass header.i=@kernel.org header.s=default header.b=fV0eBgIJ; 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 S970337AbeEXOIJ (ORCPT + 99 others); Thu, 24 May 2018 10:08:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:38518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966751AbeEXOII (ORCPT ); Thu, 24 May 2018 10:08:08 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A8CA420848; Thu, 24 May 2018 14:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527170888; bh=Zk6rI1PePrBnwo+20obKgiBHl3xXhbPaLiHsRSc601w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fV0eBgIJkUfSdKFe0e4UNKWzbVqsrQrgN/55TIz2W4rYX5+ud5AVl9NyhDUvsjuLo uE+7eFI2BFNr+msY6e24IKmBwQxmLJI7qcUMiLnSgWzT7iWboGlm0RZp5LJ6Q66XnI EFs1tcwI97uH/B+P3YyMzpBO0z9Cp/gFQeFO2+ug= Date: Thu, 24 May 2018 16:07:50 +0200 From: Greg Kroah-Hartman To: Steffen Maier Cc: linux-kernel@vger.kernel.org, Bart Van Assche , stable@vger.kernel.org, Doug Gilbert , Hannes Reinecke , "Martin K. Petersen" , Sasha Levin Subject: Re: [PATCH 4.14 110/165] scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte() Message-ID: <20180524140750.GA19550@kroah.com> References: <20180524093621.979359379@linuxfoundation.org> <20180524093626.469402002@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 02:19:29PM +0200, Steffen Maier wrote: > Hopefully I haven't missed it in the stable queue, but do we need the > following on top (effectively not applying e39a97353e53)?: > > commit cbe095e2b584623b882ebaf6c18e0b9077baa3f7 > Author: Bart Van Assche > Date: Thu Apr 5 10:32:59 2018 -0700 > > Revert "scsi: core: return BLK_STS_OK for DID_OK in > __scsi_error_from_host_byte()" > > The description of commit e39a97353e53 is wrong: it mentions that commit > 2a842acab109 introduced a bug in __scsi_error_from_host_byte() although > that > commit did not change the behavior of that function. Additionally, > commit > e39a97353e53 introduced a bug: it causes commands that fail with > hostbyte=DID_OK and driverbyte=DRIVER_SENSE to be completed with > BLK_STS_OK. Hence revert that commit. > > Fixes: e39a97353e53 ("scsi: core: return BLK_STS_OK for DID_OK in > __scsi_error_from_host_byte()") > Reported-by: Damien Le Moal > Signed-off-by: Bart Van Assche > Cc: Hannes Reinecke > Cc: Douglas Gilbert > Cc: Damien Le Moal > Cc: Christoph Hellwig > Cc: Lee Duncan > Cc: stable@vger.kernel.org > Reviewed-by: Christoph Hellwig > Reviewed-by: Hannes Reinecke > Signed-off-by: Martin K. Petersen Oops, yeah, I'll go drop this one from the queue, we shouldn't take it at all, as that's easier than applying it and then reverting it again. Thanks for letting me know. greg k-h