From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S970340AbeEXOIK (ORCPT ); Thu, 24 May 2018 10:08:10 -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 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 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