Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5626389rwb; Wed, 21 Sep 2022 10:09:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM52vWFnQXxdDhyS8loc687NBfDT+omu4baakTKKlPMaZMNHoIBZSlbPaXY560E3u3m1+81y X-Received: by 2002:a17:90b:2242:b0:200:1c81:c108 with SMTP id hk2-20020a17090b224200b002001c81c108mr10398655pjb.89.1663780145550; Wed, 21 Sep 2022 10:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663780145; cv=none; d=google.com; s=arc-20160816; b=SaWkauA5k5vbmAS/v6of9dH8Ow380pzzh4o1cRznytLrTBVpG+t9PG8wEodeyacJok vp8C94ryE4gOFnttRJUNkh/ElRwyQEM+nK7Cuvyg7nBPukGHsngUabRwNDbT6eUSRq/Z zBE+aBAvK77qmuCetYarnFsxmQdP/nTRSKAjk3QB+47qeM0YdGyiUpO89LUlp8IaYHhL aNEV7HY1EIZ8WDJAhVAUDQ32xvhAj+yFyQh9uBnSyzlpLl8ZOSCJGQzCRT9ZD4QAy/Vr ky7Hf24lTZz30ZcVQkWLpq3izzd6ZOmnru7/1NRdRPLDtEq3cC/qhPehzUVu5oq+FduI CKVA== 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=X//Ze/hQqMbrrLGSNgfXZXj00DPiIoe3oLRzSvuUuUU=; b=sHCzheQI6E0Zdl6eM2qPvWy/9Cb1mnAzH99WhwrARI8h1QvPSGAHGqEic3h0rpVlSw t2znUN6ix19kBWx0RMcN7LVDMGGGI1LQ3Gc6Qu0Y0PT+KlRln2SSvBpprZoDQAqrFet4 AEjhb4KZp90Q0I7zkMPis/C9Wxc9dpUTD/OYOZkT8ZRSBRwjxD+2qkd2WK+i8wcCAUjl Wf93/75aleRtWhR1lat1AgZCOzur8ouW+D9I/32zl1Pef4T4JyHvKRPEKUIjvVgbD1CK L7b6kyVKFQ55KX6stEwxFnM+FxZXBwcjgxat6rqtK+trKc/DuSb8Tj5Pv6IqyDqszo7/ oU1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WDSQ4YQp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a056a00238200b00543851d000bsi3475452pfc.253.2022.09.21.10.08.52; Wed, 21 Sep 2022 10:09:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WDSQ4YQp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231966AbiIUP5F (ORCPT + 99 others); Wed, 21 Sep 2022 11:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbiIUP4X (ORCPT ); Wed, 21 Sep 2022 11:56:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A3969FA94; Wed, 21 Sep 2022 08:51:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ADAEC63138; Wed, 21 Sep 2022 15:50:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9ED57C433C1; Wed, 21 Sep 2022 15:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663775423; bh=IsyHi3wSqK4hM1NhPP/hH6CMqg72K/1A8UFLZTLCdAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WDSQ4YQpCEaL4yjkSgEVGdH2xUK7hp2gkFRCnN/sxg7jurXzDL7jvfg95gmBxm7YG 7J5KvqABmEDwoNQPU7EnDabpqbG5pbqW7KxMMhF8GmnANbOOx6Q2jf9LuCODIWRHFo N3MoVI31idmYvR0hKbwVHNnLGAyd8PiM9ItgBH1g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Smart , Hannes Reinecke , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.15 30/45] scsi: lpfc: Return DID_TRANSPORT_DISRUPTED instead of DID_REQUEUE Date: Wed, 21 Sep 2022 17:46:20 +0200 Message-Id: <20220921153647.883050090@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220921153646.931277075@linuxfoundation.org> References: <20220921153646.931277075@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hannes Reinecke [ Upstream commit c0a50cd389c3ed54831e240023dd12bafa56b3a6 ] When the driver hits an internal error condition returning DID_REQUEUE the I/O will be retried on the same ITL nexus. This will inhibit multipathing, resulting in endless retries even if the error could have been resolved by using a different ITL nexus. Return DID_TRANSPORT_DISRUPTED to allow for multipath to engage and route I/O to another ITL nexus. Link: https://lore.kernel.org/r/20220824060033.138661-1-hare@suse.de Reviewed-by: James Smart Signed-off-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/lpfc/lpfc_scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 7da8e4c845df..41313fcaf84a 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c @@ -4278,7 +4278,7 @@ lpfc_fcp_io_cmd_wqe_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pwqeIn, lpfc_cmd->result == IOERR_NO_RESOURCES || lpfc_cmd->result == IOERR_ABORT_REQUESTED || lpfc_cmd->result == IOERR_SLER_CMD_RCV_FAILURE) { - cmd->result = DID_REQUEUE << 16; + cmd->result = DID_TRANSPORT_DISRUPTED << 16; break; } if ((lpfc_cmd->result == IOERR_RX_DMA_FAILED || @@ -4567,7 +4567,7 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn, lpfc_cmd->result == IOERR_NO_RESOURCES || lpfc_cmd->result == IOERR_ABORT_REQUESTED || lpfc_cmd->result == IOERR_SLER_CMD_RCV_FAILURE) { - cmd->result = DID_REQUEUE << 16; + cmd->result = DID_TRANSPORT_DISRUPTED << 16; break; } if ((lpfc_cmd->result == IOERR_RX_DMA_FAILED || -- 2.35.1