From patchwork Fri Nov 3 16:30:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 10040681 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 4043260384 for ; Fri, 3 Nov 2017 16:30:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F718297A4 for ; Fri, 3 Nov 2017 16:30:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2459B297AF; Fri, 3 Nov 2017 16:30:50 +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 A63D3297A4 for ; Fri, 3 Nov 2017 16:30:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753635AbdKCQat (ORCPT ); Fri, 3 Nov 2017 12:30:49 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:53638 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751385AbdKCQas (ORCPT ); Fri, 3 Nov 2017 12:30:48 -0400 Received: by mail-qt0-f196.google.com with SMTP id n61so3886900qte.10 for ; Fri, 03 Nov 2017 09:30:48 -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=+nK8M3thjwx9EGd0jXK9kg+KCNjQfg67Rmy6z4je2JU=; b=NaoVASVpA8/FjKsDatUfOx7DdFKOd8knFNWf4TqpqtyITK0nP9oc6zDFmHOTmRC8IP umpXSOq5cLV3Y9lGoEPPQDGIg7dE9W0feyeCdKvxQf2JQRarOxsE2mRIq8+v29IRGLRK 1NXLKtjTNZ/fk/AWuZBnJxsxpJ3FB3aLJ362J9SFnyBfk2oJ7W7cPQ5kBlllkmq4Kn/s T/wuJlJmKwHlLwvaf5VHbVcmqkHQ/FspOPpJzK0+ADH536oy3T20UphKx5hG9yH8cegB GbWz5mTcZ4Tjcy/maaObyxxd6RIcl9vgp2NjOk+afObpQmA8ibRoSTDPcnyPuCyhOfSt xY5Q== 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=+nK8M3thjwx9EGd0jXK9kg+KCNjQfg67Rmy6z4je2JU=; b=ngfFc1sg92w9EQgoFEOfG0zv1ry1B7VZXHyv0poAdFFxpkcWYmOhzRYiXf/JfcErKe z7rly5oZvHDu/+PJMrKgEMOIMHLqg4LNs8b82ZJwnuxh3HX1+4/6dBfX3l602dBW6c9E bMeGp/tIYk2qiOrzHRlcrXJ1K8I2f09zYlJPJTMOEqkfIybQjrY+5aFoTwHdW1xFRlco zAdTwOq/Unpt5k6QUudHjPrg9fdH2DlCaUXXpH3sXZ0VnzgAoZjp6+/MWBzga64TMmkN J4jnGayRQ+PJOcBhTUDZj+R7DFd81+fCri9LPnpFYOwTKoEF2SzaJt7Vm6UkLqmuOVux BuYw== X-Gm-Message-State: AMCzsaV0CDBcFJhkTPaEX7fpDV/6OqXfdlTH/O9+AuJ6rTWb/A7rm4Xb LZgqSUR3WtCDqYOJunjVfhElPHRK X-Google-Smtp-Source: ABhQp+QQIAXCzBTrU4jYt9oWlfR1ChoHD4iKNdw9VaCx1x/6RTF5lznNbD1dwN8gI46kwST4vHe1zg== X-Received: by 10.200.23.36 with SMTP id w33mr11235513qtj.50.1509726647574; Fri, 03 Nov 2017 09:30:47 -0700 (PDT) Received: from pallmd1.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id t84sm4023331qki.13.2017.11.03.09.30.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 09:30:47 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org, linux-nvme@lists.infradead.org Cc: James Smart , James Smart Subject: [PATCH v2] lpfc: Tie in to new dev_loss_tmo interface in nvme transport Date: Fri, 3 Nov 2017 09:30:40 -0700 Message-Id: <20171103163040.28344-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 v2: Ensure nvme_fc is enabled for compilation --- 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); }