Message ID | 1486064558-365-14-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 CBD8160236 for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 19:45:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE9C52831B for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 19:45:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B377A2845B; Thu, 2 Feb 2017 19:45:09 +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 7F42728499 for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 19:45:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751209AbdBBTpE (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Thu, 2 Feb 2017 14:45:04 -0500 Received: from mail-bn3nam01on0040.outbound.protection.outlook.com ([104.47.33.40]:21632 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751206AbdBBTou (ORCPT <rfc822;target-devel@vger.kernel.org>); Thu, 2 Feb 2017 14:44:50 -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=zDHSVytdfEJErDx1vkJm8RgeP6nONhSbWyFNwZTdZrM=; b=LGqI0bpwddhtLgJUNh7IOJZPhhzWbQ6KWxZsUCKQHdMbiw50uZTGeVGPew/MOJmcu5AysMICmhCidfpNgQDHDPW4GxKP9MrVGXESvn8Cz7G92SO6AXyDCQUGycEwNHZNzJjL1lIPtAKHJDi6jjJYEdK8+K6LsgiPXlPIb2HVn7s= Received: from SN1PR0701CA0049.namprd07.prod.outlook.com (10.163.126.17) by CO1PR07MB208.namprd07.prod.outlook.com (10.242.167.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Thu, 2 Feb 2017 19:43:31 +0000 Received: from BY2FFO11FD003.protection.gbl (2a01:111:f400:7c0c::142) by SN1PR0701CA0049.outlook.office365.com (2a01:111:e400:52fd::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Thu, 2 Feb 2017 19:43:30 +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 BY2FFO11FD003.mail.protection.outlook.com (10.1.14.125) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.874.2 via Frontend Transport; Thu, 2 Feb 2017 19:43:30 +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; Thu, 2 Feb 2017 11:43:09 -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 v12Jgtlx000448; Thu, 2 Feb 2017 11:42:55 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v12Jgtr9000447; Thu, 2 Feb 2017 11:42:55 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <target-devel@vger.kernel.org>, <Bart.VanAssche@sandisk.com>, <hch@infradead.org>, <nab@linux-iscsi.org> CC: <giridhar.malavali@cavium.com>, <linux-scsi@vger.kernel.org>, <himanshu.madhani@cavium.com> Subject: [PATCH 13/15] qla2xxx: Add async new target notification Date: Thu, 2 Feb 2017 11:42:36 -0800 Message-ID: <1486064558-365-14-git-send-email-himanshu.madhani@cavium.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1486064558-365-1-git-send-email-himanshu.madhani@cavium.com> References: <1486064558-365-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)(106466001)(305945005)(5660300001)(105586002)(4326007)(92566002)(47776003)(6666003)(4720700003)(2950100002)(356003)(48376002)(2201001)(81166006)(50466002)(38730400001)(69596002)(86362001)(50986999)(76176999)(101416001)(50226002)(8676002)(80596001)(36756003)(81156014)(54906002)(2906002)(1691005)(5003940100001)(189998001)(626004)(42186005)(8656002)(8936002)(107886002)(5001770100001)(33646002)(4001430100002)(87636001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR07MB208; 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; BY2FFO11FD003; 1:bETYTgwX4hPFFqnu9RWB08it2m5mJ6cLmCkGcH6OmjrbMcpud+nKuNYaWgGDaZhp2fOiJANKsqKLBUORgwPY+CshjmIIuEvvM1ItcOj8KszexkUj8vntY7PONjdcF69wjFpkEBrOp4ncAem3Xhv9/7TucQ1fER4SAe/z+mawYDcy4236Kbzyl2ufKHwcNlCXCribz0YfxapRXrdGg5d2JgrIU1AjRnRHwr4N/ek9C07E4Or/mybMMB8wtK+xl7bOtLkYyMUuFnIF2YcsK3OqWtE2R/Itx23rc8m4vBHs6cYO7sqNEtdIK5qawaA/6cdr6mc+cQD3PSQIKT0dCXwKIOuUvtwYkAZKsva0iMhPS/3VjlkUMYRe5rqgcMHUSVbKicqDRI5sfEIkq3OJ5Tdnb4jhZmQBrs6xFVqZBoIqLEvymIOi8qFGblISuxNLlQ9XaMONP3d6ZZV6ZavTTSxDH/YqZ2j6UUNnjIQMyYrCqwOK3IWDGcFpG6uoSCfK4+WMTnr35j9m5LEnGaQB9ZI7vCvHF1HFmX1FPkydTUWyldc= X-MS-Office365-Filtering-Correlation-Id: e3dca20c-30ff-44d3-f023-08d44ba3c402 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CO1PR07MB208; X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB208; 3:q4L4gPlGnjewzkNktS629Jdtb/sJ2EOsNa77J/W3oZZQWR9thyiUGKUyELaRWMle5lE8HgLgNVUCNb1Z7rmghLtYZmQbpACoscHnwlOj6V9Xhhq4Hy4B96X97k7wUdEA1utlNgYpUMV4J8fMxjgntcprGptP6dMjM6tfXr5qUZmbpIh1Sm4opOio0qghsC8BXP4ykyiaMmHYaZCdnb0TXJAnZTTu1XCiI5POctSdEHl5V6IoRJ0PEm9yQGZScD+9KsJWkn2mmnRgbT757w+/3tn4qQ+tHxoRoe/XMRERKixuwGDlspRb4HoDSlVD2NkVdjvIYTti2f/Jf0DrmHIl9k73YyziKz+33TAVp1NCnaGpAxwAEA8Bh6o6ga8slPox; 25:UQcvcv0kEJTaDGfwtxuhFXUJCoVoyb9yefj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3/hZidGYqiLI8H/12I0VDXqMgY3AnUq35ytklTMCVCofSnJfI3A6RjT2MUB+EwojtDkDDFRWtQ5kKysTxIruqgKRHTKuwoKaBWhnibD1jdKSErQ0KXu0mxUv+qFWKRL5xWpygMU5JrA/cecHVfAfbuMAMkLtUHsYvdGQcU9z0e8CF+jVd7QMWUY+1DI/Y7BwaDT X-Microsoft-Antispam-PRVS: <CO1PR07MB2084C469EC5C712A300989BF54C0@CO1PR07MB208.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(13017025)(13023025)(13015025)(5005006)(8121501046)(13024025)(10201501046)(3002001)(6041248)(20161123558025)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:CO1PR07MB208; BCL:0; PCL:0; RULEID:; SRVR:CO1PR07MB208; X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB208; 4:8t17XI4zzXSBJ2/JvtiQrZ6Kr4iw0Lwuf22m2kp287zhX4/A6JDLhTMQO21Tbhx5y9CdnlbE79eZFZzmJBMDMsRUkDW6D1HOaIGZajGTQU5xKCuxDSqau1XvC4bmcGYesTKVAa7m+BDtSsoDZeaNJfphv2ncgwDmo61qJmLin/F4njg92GnZ2VT8EyfsSt+YnJnFIAuRw3AX+1FdS0XywYZLcN15Y81tMAyMVvoINVR478/r0v4HXwqgsAtqHewhb7caso63eODw+cu92rysidA/aUjbyulv1KUAfeCxMlVklalDCMgOYjVmB78VF+ijhjcbMoOtkvfBUk30gPHEzZVg1HimCJLqtwtUiUY49NlsY2oVVN5Al4TGWQerp7287J8hIiHWyb8HFIr0ixjpzGFY7wDKmwhtQvPxhFfThZ8J1nM3gMjP0xcl22FeKTdohbnI9zfxFGU+I8Aa4nUHbdIFVGRaRgayRoCW21uMqOvhS021HNX+P8xcGsrLxQYe5b3/XvPP8zpFznWmmMK50NXKdnzXtZaSy5IVdug3xISKV/A5i9xoYO70GyWdTXCZjhS5YjX0I4G60Ou0S62qnXM78kXaBrfzJ+9H9+tfLFIHtsjQRJSBOXnAGOSCTjQe5TgVfN6gVHlNlZmb2tMpWp6HpihnBPWRx7SEohVhHrV9nrR9edZRucHCitR5cPnlHrtxvstYWIIYabY1qcRniA== X-Forefront-PRVS: 02065A9E77 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR07MB208; 23:0BMj0W1kgnz4RM1HWZFHiziXhiohpHuZVNrejlteeJ?= =?us-ascii?Q?CtarIExDj6x01+Tkkh4Yg49uB9+MBgdIFQy/zHZR1xVqt95V75rUBuARZfho?= =?us-ascii?Q?FmMaxTynYuMcd3KQeJmfjfUuaC64nAmvnTTNEoCOBRIh3DjiD17Vp3Mn9EO6?= =?us-ascii?Q?vOdJj2GuD0L9pwe1auGDrgVV5xmZKsmQmBRj/udMEBaS5O8mdZC24oZX+CCy?= =?us-ascii?Q?xITtZQncHKNYvxrcy8dMkZyAZ143czZFtiUWKrVevgiru1COqSTpqHdu5sAL?= =?us-ascii?Q?6PRJEt+XD/o42c920eebFKLeJeK0rTuRbcKYJaRIfudKlKNMbaFJ4bvKMztF?= =?us-ascii?Q?Wk1NosBBBi6XqXZk9yqolG32thgXESMHzlJnSQnrjXoZSTJx37DY5Pghio4L?= =?us-ascii?Q?VMGmO1R1cT2aVUvilcYYnP5xuMvzd9AI0O4PXwI+MtO+R0zg5bCtj3JoBWnf?= =?us-ascii?Q?QFh68zpy9jvWq1ihWhDcImAgX1Lg38GXxFq43fyXjf+Cm6gN6CWGAnro+ica?= =?us-ascii?Q?Q/g+wtiXMbYu07d1QMDmfh9JKw8gi7i+pbvZtxTwY6YEXJpLRIHgeQ6ZZfJF?= =?us-ascii?Q?E1h0HIvs7VW9XmlDrsNvEFabEwcBxTsLEGIs162URHEGLGQj4pG06NxSMWKx?= =?us-ascii?Q?0Bodug0/u0J7MTFYuFIbfNbBhbEQk72pN/M2o/U/laPPutzGHpv7rFy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FgcTA38sxh5dl48NLmjzahdLdfnjDsT+UV14uBr9BuToIQHhyJTEqpLWpp67TLQ9x7qawh1nx2qlUkD9O2Frzve6tbepRApg/yFh1z9GpYqIhgzpJ4EBD0dBvrRzPT7h1Bqul8TN0MfHA65fTjb99PDg=; 24:lAbgyxEwSMMAlK+1HFodRo59nglN8M980h/7h1YEZXjA5k6PhXYiIbSynlup6ZOKIrhffjvL3E1lqaKdBw/IUbqvvxtYyfhJQV+FVxmcw38= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB208; 7:DneZH64/nlPPytHUImAts02TX8OWe3u+pNyhCnFaIWMT+XxYolKKHDh2bTQ5c1g9Q20ZZgzLTUZvS1eCZoE/JyTO3AuGBML1YL0i6IqC9F4E/g5ahmTW9XaUO3zT7sVAvLtObrdWQ0GkQFIgYoFWzuos7qZNDAGn8Rfdw0S4cIEeMdw4KXsmm6KpCUw9yNPMkKbC7fT4YaLV1tSGdA5pdAfORfmzm//AwiGFnqFT0967j/vTW9DkS8I1i5hJ83B4N6TflyvvWPAGUzfMtQv7sobKNAd5UOPuHkepP8IqhM3bHoskfvBUz82Ljkp7O94uauPYnK/1e/yFxLxTIgmiaojsE9iQt/RWaZCOTFx0mVciAWqUgAr11fZTToo0GBO1NHG1t2lEpPiBgrgCdv6pB3wlZAfZ28NXkSU//rI6kZsicPH4qQy7w5QHDxhUXtfplYdV6SnYHD/HCSjMOII79ucN2FUT93G97raUvWqjFZ6YzFEXw5/og9R7YDRxoi8tD3IYGuq8iUBD5PbrkErS6oL7B1upWI7ZbCkjkNErF3IQztuWmlwsC9QDYmehd6s3 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 19:43:30.4177 (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: CO1PR07MB208 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 6351132..7c4adcf 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -6015,13 +6015,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 dd328c7..0a4279b 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 *);