Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2109465lkv; Thu, 20 May 2021 03:38:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDDPerekG/dqzrQul1wFyGgjb+oNMfIsw/o+OEFWKj89jrE6blQi1pJmbd4LoV2Ei37wfO X-Received: by 2002:a05:6602:14d3:: with SMTP id b19mr5058853iow.154.1621507082040; Thu, 20 May 2021 03:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507082; cv=none; d=google.com; s=arc-20160816; b=nYW1HEQOcnR+g/TYuPrxH9PpACddGtAYhlwOrVmuxZuzxcfJ6k02B47OK7kWxBlGlD YxB58IHe+WdqPmnXyuK+wUBRibIeU0PbvLCB3n+MSYuNgcfQH/z88SnafLl6V8BxH7vq LovuuoVV7/gvt6b12j7UdxInxTq8KxSmrztqTUuu4nGKohsedhCtVv5Dw/mNwyIcnMQg 6RJZAAoltq3pU8jfKm5Ps6L1LsHXyRyqXNUyVe7BBuV8dmWJ6YJjhB4HZZUzQBUq8txq 1YZyhnNQe6lH3Ec7vRt1rIn9paXlNTs7pP6TbmtaSM/kUoOU3pEsLULlkI8Y1lpNQZOQ f4CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ReU8u8TFy4fkNci2Rcdqq858Iv3TqFrsSWmqtoN1iZs=; b=eRNvTR0ZVMICwTROKoSFV3m6EjVabkGw1GY4i6XvfSxP27xHYFxuTMUH8TTr677EAQ 5XZBPtU8BjPsvOqnPR5SwIukDSYvHoHCe5kONfq9aEGBX66PvgfzSSR0Rety/dgOLW5U 1/zFTWMOEYdHagYAWQV0YukaFgBd0R2G/seoXDhvIdsGYTKdcdtr7dGgnzoabvKbr0RV t5MZsPFT48qg/qs0Tzx6OKp91vnfoc+BDP4pvcwTsCC4Gd8IyiVHiaqEt+v5R0I9jWbY kf1aU3ks4l8HRKAVe24z4u/PxRr4ceCw65W5sNXS2hcGAUQaVpnt9VpwqG5iHIQCv3UL Bp9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PJfIRUa6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si2223614ioz.41.2021.05.20.03.37.49; Thu, 20 May 2021 03:38:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PJfIRUa6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237558AbhETKev (ORCPT + 99 others); Thu, 20 May 2021 06:34:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:52000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235512AbhETKVb (ORCPT ); Thu, 20 May 2021 06:21:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9ECE9613F4; Thu, 20 May 2021 09:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504083; bh=xB6VYlt5NzR/8m/S3nMXlY5blq0A+ZtdClEADKTA9i8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PJfIRUa6mQhLjmGP/4YYE9zYIQUFvM//S71Tb/ilY8s8raAFxbepUXib+bN2WLfn6 bco/cyvxoPdlddsCBhjHyDK9LZh5xvBpNZ+DYCPNUgwEKFa6o85W7RHQG2YnK07DMF ffN9lviX6BlTNgYJ+Z3ifmR/Ih9fBPKfYjpLX7hU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hannes Reinecke , "Ewan D. Milne" , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 057/323] scsi: scsi_dh_alua: Remove check for ASC 24h in alua_rtpg() Date: Thu, 20 May 2021 11:19:09 +0200 Message-Id: <20210520092122.065331290@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ewan D. Milne [ Upstream commit bc3f2b42b70eb1b8576e753e7d0e117bbb674496 ] Some arrays return ILLEGAL_REQUEST with ASC 00h if they don't support the RTPG extended header so remove the check for INVALID FIELD IN CDB. Link: https://lore.kernel.org/r/20210331201154.20348-1-emilne@redhat.com Reviewed-by: Hannes Reinecke Signed-off-by: Ewan D. Milne Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/device_handler/scsi_dh_alua.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c index ba68454109ba..2cf5579a9ad9 100644 --- a/drivers/scsi/device_handler/scsi_dh_alua.c +++ b/drivers/scsi/device_handler/scsi_dh_alua.c @@ -560,10 +560,11 @@ static int alua_rtpg(struct scsi_device *sdev, struct alua_port_group *pg) * even though it shouldn't according to T10. * The retry without rtpg_ext_hdr_req set * handles this. + * Note: some arrays return a sense key of ILLEGAL_REQUEST + * with ASC 00h if they don't support the extended header. */ if (!(pg->flags & ALUA_RTPG_EXT_HDR_UNSUPP) && - sense_hdr.sense_key == ILLEGAL_REQUEST && - sense_hdr.asc == 0x24 && sense_hdr.ascq == 0) { + sense_hdr.sense_key == ILLEGAL_REQUEST) { pg->flags |= ALUA_RTPG_EXT_HDR_UNSUPP; goto retry; } -- 2.30.2