Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2483104pxj; Mon, 10 May 2021 04:11:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUQupfZLA/BXk4sIhlPVHycMb8RhSshVgCUrWt8/cU6Xy+QUWX9tijonGSVikKB1kt3+WG X-Received: by 2002:a05:6602:2e82:: with SMTP id m2mr16684566iow.190.1620645061872; Mon, 10 May 2021 04:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645061; cv=none; d=google.com; s=arc-20160816; b=lP1uZsKw+SKlN6zata9Lpu/De8BQOn7OlLzmEfkKsohqrOBf32zEMn6ungjhCgdi21 pp9+eaX2BZFFRAQszxKxGIFzz/cNCujyHOIVmWK4irNRVyXVA8Jh8/pWRBsFIzn0kilz ruzyefKUqjhkPFlMpadncSI8SbEYzOwxAzhG2kttL43KsKaonp9qT0I1/of6dNwTZ+zd nWN0uq/+gD0yyJMcOw4wEQMApIytLBqZw+cJN1pYCkBNNSeDkwUcnIQlnb+XHgXHD0CQ FcqMqX2TsefZIUEmTLwtMKh65MR5wMrRlWc1dbjc5NWUqbW2xwXUayVGeZFo/hCVlUtJ MTwQ== 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=oaebD4acvrXN0J1ZGiZDOgxkl1k8tDPfYePjqtFLgAY=; b=XUI18R9HHFcdD1UYBPS9KJjPBRLrw6F/IiP90F1frx81K50+neSgiHruB+plqKu0pd 5b9bHb49Gp0WpcJk24DIoNAp37gUCNivDqTTlGbqTmfuXnwxPgb/YCdOeJmyUo5GAtCI VxIhQWzM32HBoQKg3bLyMSPZQ7pDuqdgBCsD6BkDKh7p4jKi8z31qg+UJHxEj6JC94OK L/1jmFToB7LJojGzCYuROrmjHgUDoeJzPehWpONQfwF+Y4YQ4UJ0bU7URrxinJHYrUwr guUCjG9yEebDEp2pqrUWeaAMeekR6AsLyTuwsnmbl2pWVRbbzYOtKkh5x3rdi0IQEJLb qLkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oc76tWRj; 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 y13si13099902ilu.37.2021.05.10.04.10.49; Mon, 10 May 2021 04:11:01 -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=oc76tWRj; 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 S236621AbhEJLIV (ORCPT + 99 others); Mon, 10 May 2021 07:08:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:57592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbhEJKsK (ORCPT ); Mon, 10 May 2021 06:48:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 67547619BE; Mon, 10 May 2021 10:37:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643076; bh=XO+B8z6GztA2pPJlVufK5druNW5Q9Lf6Yy5u/W6beqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oc76tWRjDzpoewyJKg5RNyEeGY3pT/lk8yJx4Rvy3DjU1rOy3VsQy587w/sYc7pUa mmd/2CVW94vJeK1wtbKho7iZJz+xaZg2tHsDt57/sDKZgvybyCXDZ6INIQIWXFIrx9 57QKCnjmYe13ywI7HLXgN4o1J0zFUKisUW9nH5lk= 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 5.10 169/299] scsi: scsi_dh_alua: Remove check for ASC 24h in alua_rtpg() Date: Mon, 10 May 2021 12:19:26 +0200 Message-Id: <20210510102010.537210831@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 308bda2e9c00..df5a3bbeba5e 100644 --- a/drivers/scsi/device_handler/scsi_dh_alua.c +++ b/drivers/scsi/device_handler/scsi_dh_alua.c @@ -565,10 +565,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