Message ID | 1487972263-3795-13-git-send-email-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <target-devel-owner@kernel.org> 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 A496F60471 for <patchwork-target-devel@patchwork.kernel.org>; Fri, 24 Feb 2017 21:38:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94DCA28947 for <patchwork-target-devel@patchwork.kernel.org>; Fri, 24 Feb 2017 21:38:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 89BA42894F; Fri, 24 Feb 2017 21:38:45 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 2DE9E28965 for <patchwork-target-devel@patchwork.kernel.org>; Fri, 24 Feb 2017 21:38:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751406AbdBXVin (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Fri, 24 Feb 2017 16:38:43 -0500 Received: from mail-bl2nam02on0040.outbound.protection.outlook.com ([104.47.38.40]:23008 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751320AbdBXViR (ORCPT <rfc822;target-devel@vger.kernel.org>); Fri, 24 Feb 2017 16:38:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xuWnmWmBaM7ikYY2ZXBI5XOE2RkIm/OhqzpXiVjdvMs=; b=jmAOnQXBslVLxL3+bVvln3DRQy0stUg9xZgAmiZqVCcpxREAimJZ7tXbF+muttm98d3EnQEBYWMZIrS3lbGzV8wfZwdD8vO0Eo90UOqcShhFEaYDmcVjELyQJtCcKXbmK2DJXxUm/QLG5/2FzH+x2ru/ZV0QmHe/iJ27aCKOyYI= Received: from CO2PR07CA0018.namprd07.prod.outlook.com (10.141.194.156) by CY1PR07MB2634.namprd07.prod.outlook.com (10.167.16.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Fri, 24 Feb 2017 21:38:04 +0000 Received: from BY2FFO11FD004.protection.gbl (2a01:111:f400:7c0c::152) by CO2PR07CA0018.outlook.office365.com (2a01:111:e400:1414::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12 via Frontend Transport; Fri, 24 Feb 2017 21:38:04 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; linux-iscsi.org; dkim=none (message not signed) header.d=none; linux-iscsi.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BY2FFO11FD004.mail.protection.outlook.com (10.1.14.158) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.919.10 via Frontend Transport; Fri, 24 Feb 2017 21:38:04 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.309.2; Fri, 24 Feb 2017 13:37:46 -0800 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id v1OLbk4U003872; Fri, 24 Feb 2017 13:37:46 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v1OLbk1f003871; Fri, 24 Feb 2017 13:37:46 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <target-devel@vger.kernel.org>, <Bart.VanAssche@sandisk.com>, <nab@linux-iscsi.org> CC: <giridhar.malavali@cavium.com>, <linux-scsi@vger.kernel.org>, <himanshu.madhani@cavium.com> Subject: [PATCH v3 12/14] qla2xxx: Add async new target notification Date: Fri, 24 Feb 2017 13:37:41 -0800 Message-ID: <1487972263-3795-13-git-send-email-himanshu.madhani@cavium.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1487972263-3795-1-git-send-email-himanshu.madhani@cavium.com> References: <1487972263-3795-1-git-send-email-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(2980300002)(428002)(189002)(199003)(2950100002)(33646002)(189998001)(4720700003)(105586002)(6666003)(107886003)(38730400002)(305945005)(106466001)(76176999)(48376002)(42186005)(69596002)(92566002)(101416001)(5660300001)(626004)(50466002)(86362001)(5003940100001)(80596001)(47776003)(2201001)(8936002)(2906002)(356003)(50986999)(50226002)(81166006)(81156014)(4326007)(8676002)(36756003)(54906002)(8656002)(1691005)(87636001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2634; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD004; 1:PalyDPyTHP4+fOEkGPyWwWAFpvAO98sZttTghv2YE8FhWG9ASmsNDdHkkOyxJ49H9A/xMBoh+sH+Yf5bpbPh4uvywA5fAzLptps7QYJjEU/mSBVCf+hyutaMraVazLtRGKH7Su3BChAD4Ji4MNbIWhyAI0auP4GvEB5g+AjRDH27hDdZMBr47qTbmi27BDH3B8LEd1ri6eCXhnJru2qKraTU+A2w0/uvcKMWjs5m7VSiWec7Cd3YmV1q1r9KcswQmxjRD9Uyh+xvInlzE75VBBseNt1EEP6RrMv1fNEf2ohjseeQfW+na+fL1lwxWl9UuDgYyBhq098jisLxMZpJ2VbH+jBo8ZGDaLYE0TwQ0b2vnFtgvaqrFMMMRQc90EDgT7Va7UXzTkldcZcBKKOL9vhfzyr/vAD8Up5CkWTtELX7aP/CSqCtlrceHO7mgMt0qf8hFruv9lXyW/1291DmCEgthJmcWsy8pVcTmEyCaJxBCn2F93OisONKQSfLBwfqwoKol0klDth13WXrfw2Mu32KNYv9WHmcD5GBfkSTfvo= X-MS-Office365-Filtering-Correlation-Id: 64e1b5d6-5a2d-40c9-f9d5-08d45cfd6a1f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR07MB2634; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2634; 3:LhYBW4kGXhCy5JvBM2NL8cTKYmpLRch7Qf3nnJ1eIS2E8DgwnM7O8KEgNLJytXmBmP/bjMr9WX1QU8EsXQz+CLmULeV34td0KP8jJTiUG2DHmpyhncIQrhs3oaSJhW6+ex6K7aH7JyqRy8M4h8+VVQUC7PfALap5evKly9rCecxUWLeY/9WVb5/xLFueX8EE1L5/VNBB2AI80Gbmh4ycRoyj/0n7i/qYCmjuoQuDhhXbjfKEfflVNe4SjWze4chescnLxU7/KtbOU/VsP/kCqFNRLfUrufbRAVzpatcGwnODpnKhipM1M21gzhKSd/xiFM/oeJIUYo4/vkRHxf31riEcD1iH6oXv+BD7FIIBI1gjnD9j7THa3oB0Y39xvY0S; 25:3Sx6aoK0NPk6HGkxDy7o+pFuhR16Z2yBbyjETuvYh8iKtR/FcY3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a0d9He5KKI/Pu51YXMd2i66iq4xSqfDV3yisHVKIMfWyqZKk1auViU+RoVNupxioiqEcwIiYi7LFROafyMoHedTl3B+58tPMRAsOsOVPMn5M0w0E7H03wkXuwk8T225wwk9/jDoTm3L2qWLYGlJDX0sK7g9DEw+FdUwZHijDts X-Microsoft-Antispam-PRVS: <CY1PR07MB26344C1A40BCBE0FCC28D72DF5520@CY1PR07MB2634.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13015025)(5005006)(8121501046)(13024025)(13017025)(13018025)(13023025)(3002001)(10201501046)(6041248)(20161123555025)(20161123560025)(20161123558025)(20161123562025)(20161123564025)(6072148); SRVR:CY1PR07MB2634; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2634; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2634; 4:UXEUsyMVFq9CUmHXBqL7TwiFnjLivMtjKyMppezmHLt3DDOeAXQ5KHF688jk1WtmDdcyon6/vHF9m1zQW7ktgG8OXGKXreXCWrVvpszQ6xhnUB1RSETdBKEjt1c5qRv9/4c3LbeaGqlpa4wrGW74Fk8qIpObhEa5+bJA0zswfAzQx+/MxIo/yBCpaKa6Dvca9ZCpkbOUsQQX1egx2vbkwawfw5En3j2mut3oYX4LHBZmMfYUYqGV92rqUBLnSsOgZ0YYLrn/9+6QcpItE9VV/T8TO7ehWssUx6qR/Zsu2ckNWTN+aG0eOhElZwYr0tUmvgRKyunb4GlHsla8w93Kzmo4L8DteoH3CJ9PEGfoB2Qj7gddefp50ggbl12Py9O031+HbLfKDFuVdhlChkxCSh81rQ8wfddiv1J2GjwGxzZNM1GbX/t8mmoCpYS29OZCMSFh7YCgt/jrS98VImjRQ2+MIJR5OuYV/bwrAAa2B87ql2CoskZLNzOpzmvkuZQ1GzC65SOP9wB+PtstFtKDs6IgqmNcNaxofBLrVVs0PQwZoecayscx96Zy4lUOeEa1+hPcnekNiZTHAr/wrhhW91HoIV0KteVGqGwz223jyviI/dFmevG8Gt5BK64d6uPC4iA1AOQZmW7vb8IPs58LtyEeLweyNFt11qKeouTrU9it7G4QiRqXH/CX0mw++MV+Oi41mkRG9RmE5XtglCe5eg== X-Forefront-PRVS: 0228DDDDD7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2634; 23:xnkhgOeO9fyNKuNG2QmqaPEld27xxNTV5vf/fNQhE?= =?us-ascii?Q?4wOib9wLJUxz7xcjWVEk2aIDPkjBdWUlmm6TEtkcVGJrQCdCskVkf0NqxHnh?= =?us-ascii?Q?1B1durvfeNWc0le8lNzRc4mEhzQM0WnzV3F1vxgNKgrx4sw3Lt3JDbmqm8Yj?= =?us-ascii?Q?QMycfdYk3DNK8YQ7cwXR9NBEJSkreg8sUINAeE1MWB/chXZloYu4qlBId1IH?= =?us-ascii?Q?wdq/6Eh0sTZJhcbj4UKpJVqOzzcOnbnQwnun3okpcxZSLle8qVlLcgmEzNRp?= =?us-ascii?Q?Bsmtavg6MoHw2RN3zIqx4uzBd1k+A2x/vPRZOGHW0yLF9SACJVVm2YoWnQyj?= =?us-ascii?Q?YD1+t49Rv4KBvmKaQv+1K2PPcfiWwgF3Nc4Y3hEB59c0t/kd25F7gNll9d62?= =?us-ascii?Q?yJo9mm0jFs7pXMsej7UiF0f7S5TPwf3Zjklgn1P4E4Nyo0ChuwyzH+LPj/L9?= =?us-ascii?Q?ntq7rclopMpblaayeekImFc28C6mjlDVlxt2WvqPCytwmWObJ0b/S05W+z1R?= =?us-ascii?Q?NtKc9mG6h5nQtWzw4oAy425JwMCnZ9vhUFKpKUyoQjYjDSLK8btdJUK0sZqw?= =?us-ascii?Q?Jm7fkrG5WZMH0cE8IF+x8CRFrQB1wXl7ji+atsvGDTDD3/ADD4gpXfeJoKIq?= =?us-ascii?Q?J91hKRZXin9y5bdDrCEYZKSz+qnaAasy4zafYKRprNGK08FDs7vOTu320wpZ?= =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qLMw8mQm7+uR3oCuFOhlRhw0o2xMfurMbR4yxmlYOqP8S4r8NFh1xPgYtn40JHfI3eD6qQBJY=; 24:3k+Gxs0/5OFfUnMuUeIuB6XTnUNSKaZpOdribnN4hBC623aHW4FAXJy2Yunv34fEtQvINx6jPw3+5jZZeqnoyPGhCPSEfOOrI6zXNqPg6sQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2634; 7:bxxJrnXujWQaa4UCbu0Vj6qOsDb9XMI4x7qFA59FLMVG2BF3as1vcANbAQmDYh3lNCdRcMwt9XsG3zeDWkc+t5AEq3XCVhM7+cXSKOVHmrdjSQtLdkTZ1OqqCXzfZJfWXMLN5OVzbLfigbZnFdVZ32Dh1Mawvhg021Zpzur++cLzgba0UlI1aArJTm6otWocv+RPJ5mZJtvGH3sq/ygtaVb7TD8lWuJFmOpoCnlUNdaVNZN+2gyCqyeRR6l6VDjix2vOchRUB2XwFzYA427jE/S2MdCW7xwfHL08sdBIpoWwXSRdd/7yyE64xvoqIqTHBXYD0jS4lg9dfUqEMHbVZA== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2017 21:38:04.0860 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2634 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: <target-devel.vger.kernel.org> X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index b751eb6..e523c49 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -6011,13 +6011,13 @@ int qlt_add_target(struct qla_hw_data *ha, struct scsi_qla_host *base_vha) tgt->datasegs_per_cmd = QLA_TGT_DATASEGS_PER_CMD_24XX; tgt->datasegs_per_cont = QLA_TGT_DATASEGS_PER_CONT_24XX; - if (base_vha->fc_vport) - return 0; - mutex_lock(&qla_tgt_mutex); list_add_tail(&tgt->tgt_list_entry, &qla_tgt_glist); mutex_unlock(&qla_tgt_mutex); + if (ha->tgt.tgt_ops && ha->tgt.tgt_ops->add_target) + ha->tgt.tgt_ops->add_target(base_vha); + return 0; } diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h index c73c938..26fa6a4 100644 --- a/drivers/scsi/qla2xxx/qla_target.h +++ b/drivers/scsi/qla2xxx/qla_target.h @@ -693,6 +693,7 @@ struct qla_tgt_func_tmpl { void (*shutdown_sess)(struct fc_port *); int (*get_dif_tags)(struct qla_tgt_cmd *cmd, uint16_t *pfw_prot_opts); int (*chk_dif_tags)(uint32_t tag); + void (*add_target)(struct scsi_qla_host *); }; int qla2x00_wait_for_hba_online(struct scsi_qla_host *);