From patchwork Fri Nov 3 16:12:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 10040671 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F3E9E6032D for ; Fri, 3 Nov 2017 16:12:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4AA329767 for ; Fri, 3 Nov 2017 16:12:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D94B92976F; Fri, 3 Nov 2017 16:12:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EA6A2978C for ; Fri, 3 Nov 2017 16:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751736AbdKCQMs (ORCPT ); Fri, 3 Nov 2017 12:12:48 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:56408 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751290AbdKCQMs (ORCPT ); Fri, 3 Nov 2017 12:12:48 -0400 Received: by mail-qt0-f193.google.com with SMTP id z28so3809193qtz.13 for ; Fri, 03 Nov 2017 09:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8zgYtalSGiWeAjHtKvHbGDuhx9SSGyWab9nMCVRObtA=; b=OCXFRtaf0z5R5o0TSpGDZEiJ34NRVqOLyzO6sr01qus8xJ13n9agpBAXiJX6iX/Abn JcuQ636yNXyl7E1SD8VdgzYMpyB5CLmy2cO2nuWnSkh+6c3NnR3JHWqf3m/bgCfASKvp tnY3kXtV33ZJfLAlkbdLSO44WVwErYbMjFC3Mtm11CW0JqJpM1ty66NYJmNf1THwLNM4 j20DGFo4hXe4J9cg5EqGPqSXvTGFbfR2Y80lmlTGripuEiJkGPfAzM3nP7mnMaQstli0 FFbbHgnoJ7qZ2QsYfjG2km+9KvyHFMcG8zg/1gEuyHmSJxEJOedHagGRWrXUuU1/Pe1J L8bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8zgYtalSGiWeAjHtKvHbGDuhx9SSGyWab9nMCVRObtA=; b=Lj6g+5VDCzgLvj1xxCfPOaR1lcy2L8luvtK/299NGSLly+6mhIfD1bBn4p+wsE6CI9 HCF5rNk5Cj6fqlyQOjPX+efQ0tHVGqDHdEX4dmlTKEsUCkHhkP29WTYyZR5LZazSMIWm y7paqDDSSYAWaH7ry/4yCX3yl/kIZ1HAaHzBToWqlT1SvhIfRNBSXunLJO+shBW4DGyX SPq0trEdcgHO75U0Cvos2pgdVtIPacSUxKpGwr07xGzitLFsRQfcp9SlF1QniHs/C6fj S89QnU6SrOfIKDpkJBe5exP0R4yz7VRo3iK7+9/4sGvkeWbOklOzvw3x6cqCxf+6VCNq x2+g== X-Gm-Message-State: AMCzsaWQL6DyOhh8uW7cIAalhww2oWq4Ia5mYfKnhgz/DQVxpyViZUv0 tNKs3QApd6vyC+/vNuhu9L/kJ/bY X-Google-Smtp-Source: ABhQp+S5Ug/2LQBxE7eV8rlvXduQph62VbEPFIWSBUuiFH6PVZsWu51zpcne9LciPgsKHW7wy23UOQ== X-Received: by 10.200.41.90 with SMTP id z26mr10271779qtz.47.1509725567432; Fri, 03 Nov 2017 09:12:47 -0700 (PDT) Received: from pallmd1.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id r6sm4206794qkh.22.2017.11.03.09.12.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 09:12:47 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org, linux-nvme@lists.infradead.org Cc: James Smart , James Smart Subject: [PATCH] lpfc: Tie in to new dev_loss_tmo interface in nvme transport Date: Fri, 3 Nov 2017 09:12:36 -0700 Message-Id: <20171103161236.15127-1-jsmart2021@gmail.com> X-Mailer: git-send-email 2.13.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch calls the new nvme transport routine for dev_loss_tmo whenever the SCSI fc transport calls the lldd to make a dynamic change to a remote ports dev_loss_tmo. Signed-off-by: James Smart --- This lpfc patch, as dependent upon the new nvme transport nvme_fc_set_remoteport_devloss() call, should enter via nvme-4.15 --- drivers/scsi/lpfc/lpfc_attr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index c17677f494af..1191a92e2dbc 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -3246,6 +3246,9 @@ lpfc_update_rport_devloss_tmo(struct lpfc_vport *vport) continue; if (ndlp->rport) ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; + if (ndlp->nrport) + nvme_fc_set_remoteport_devloss(ndlp->nrport->remoteport, + vport->cfg_devloss_tmo); } spin_unlock_irq(shost->host_lock); }