Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp303237pxj; Thu, 20 May 2021 09:40:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg4FNFGoaK8ZnQtJs5hYlMuumHoQu1NfS0tedLcypdMU9kqdexoo136NiYHRh1Sqvcj8Eb X-Received: by 2002:a17:906:4ece:: with SMTP id i14mr5397380ejv.249.1621528814978; Thu, 20 May 2021 09:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621528814; cv=none; d=google.com; s=arc-20160816; b=Eqf5YgCgX7VkfO/s79aol+rb+fDDexzKcOY/pA/q+ROySS+fn1AbXhk02XeV84DT2L 7F26n6xT7z2YrDP57wT6tloN5vbv/ZPnkLf4r/dlZcn9t421lwAinUxVs9x+FaVPYUsF 4CfXN/OGknOVdIhSQZHgefOaaFkp9vvJLlSCKxPykNSj6cGaGTf+RDvamQAbtKQHUvKE j+oFE4Bqmc10ipfEutO8pE78P90Gap4Aacko+5SZPCbIooFdXZO/vm1GTonZN6jiEPtp KGOzcqXvdkzRRl+Zz1SHBd3FAZxdYiZt6j/r1VrthpE5BBlH+1ISg5iUe+SOyea9LBBN fk9A== 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=z2VYppuWr1RhxGmAkP08MjDqxaP28+wX6IchGCie0EQ=; b=xq7bWzFlliKtSfjC0vewnBjjCsri7LLW+o9ZT26wD6vrIzU/ji3fvvUxQrYxKpId8e 8KLp0Kb8x5O5i3QkQZwhIa2SBmbIFasuquvb3N3mcLTl5+BG9mvJQIsLsTfHFM8UBe4P D1iOof2wyXmz1fQeMoof8t03YAsngvf7I8qBoBb0/UqmiQ79UZnxGGOOVRFIYQP7JFDa u4hFJTwjwuxpQymwFR2rx0s9M6RAcojJUVPH2IBmXY7NxyRB20v8D+eDj7gBqPT+bT6u DLRGs8j4bNftbbJbp6tsqIVcTtNVOlWY1oOmhqdpHgerOJ3wmQfAnej5zRbX/vomIodV hD6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mo8CU2v1; 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 r6si2586454edq.457.2021.05.20.09.39.44; Thu, 20 May 2021 09:40:14 -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=mo8CU2v1; 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 S233442AbhETJl1 (ORCPT + 99 others); Thu, 20 May 2021 05:41:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:41910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233324AbhETJjP (ORCPT ); Thu, 20 May 2021 05:39:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D23F2613C9; Thu, 20 May 2021 09:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503071; bh=e1NKP0WDvHZyRW/v4THCL2wmK7xS3PdjaXWhwZ3rhno=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mo8CU2v1Hkf4vHfgf/94EnjkJFwsirFQtzCdjuLcTRXdfXZOik/wD54AUmj3lVNoY TJ1cf9hc0VLNFG/46xUQpEFVqwv9YGTfHHsUEMzdFBQ2FiBOPXn4IjjOJAjCYjjxgr E9iybe1FmNjU7RRxrfK4Kk4xOCJxSKgLOmfzDPC0= 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.19 055/425] scsi: scsi_dh_alua: Remove check for ASC 24h in alua_rtpg() Date: Thu, 20 May 2021 11:17:04 +0200 Message-Id: <20210520092133.249545459@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 60c48dc5d945..efd2b4312528 100644 --- a/drivers/scsi/device_handler/scsi_dh_alua.c +++ b/drivers/scsi/device_handler/scsi_dh_alua.c @@ -579,10 +579,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