From patchwork Fri Feb 3 22:40:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9555197 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 DC99A602B7 for ; Fri, 3 Feb 2017 22:41:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C942728135 for ; Fri, 3 Feb 2017 22:41:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BDEF22816B; Fri, 3 Feb 2017 22:41:38 +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 05B6B28135 for ; Fri, 3 Feb 2017 22:41:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752977AbdBCWlg (ORCPT ); Fri, 3 Feb 2017 17:41:36 -0500 Received: from mail-co1nam03on0042.outbound.protection.outlook.com ([104.47.40.42]:18263 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752963AbdBCWlc (ORCPT ); Fri, 3 Feb 2017 17:41:32 -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=ElzozU6/s+ZrhPZkJk5d166YzbT8i5bBYfU9h9/eBGw=; b=UZJCbS68vfmRkMCn6+EvZUcSCvSL+lLh0jJpu01ae+iqWDMO81f9e8cdEwoVCDOQ/vpALu9ups52YQlrEyhv0EZSgbAFzVFIxpgcZ/hB+PznCgn5WMtCzhQAnbKAbQx2H8BJc2dmwNaeN7D174EMFG7sd4RaJ9HZDAd1HvIS8k4= Received: from BN6PR07CA0005.namprd07.prod.outlook.com (10.173.33.143) by SN2PR07MB030.namprd07.prod.outlook.com (10.255.174.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Fri, 3 Feb 2017 22:41:29 +0000 Received: from BN1BFFO11FD023.protection.gbl (2a01:111:f400:7c10::1:190) by BN6PR07CA0005.outlook.office365.com (2603:10b6:404:3a::15) 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; Fri, 3 Feb 2017 22:41:29 +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 BN1BFFO11FD023.mail.protection.outlook.com (10.58.144.86) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.888.7 via Frontend Transport; Fri, 3 Feb 2017 22:41:28 +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, 3 Feb 2017 14:41:25 -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 v13MfATH002348; Fri, 3 Feb 2017 14:41:10 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v13MfAmY002347; Fri, 3 Feb 2017 14:41:10 -0800 From: Himanshu Madhani To: , , , CC: , , Subject: [PATCH v2 03/14] qla2xxx: Allow vref count to timeout on vport delete. Date: Fri, 3 Feb 2017 14:40:44 -0800 Message-ID: <1486161655-2307-4-git-send-email-himanshu.madhani@cavium.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1486161655-2307-1-git-send-email-himanshu.madhani@cavium.com> References: <1486161655-2307-1-git-send-email-himanshu.madhani@cavium.com> MIME-Version: 1.0 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)(199003)(189002)(356003)(101416001)(8656002)(54906002)(8676002)(86362001)(48376002)(92566002)(2201001)(6666003)(575784001)(81166006)(81156014)(2950100002)(1691005)(5001770100001)(305945005)(189998001)(36756003)(5003940100001)(2906002)(33646002)(106466001)(4001430100002)(107886002)(4326007)(50466002)(5660300001)(38730400001)(105586002)(42186005)(626004)(80596001)(69596002)(8936002)(4720700003)(50226002)(50986999)(76176999)(47776003)(87636001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB030; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD023; 1:0lb7EM9jUM0SausQ8ovzgl7krEhI2DsjN1iZmYHlDRnavk46qlA2qLbzlNqKKzK6xE3WdC0E5aLbHLaeaRkPKcTE1EuUPdCbqiXgydg4aUnvSZPsZPJfEZiX31+gqzia8cJUBHgrgw8urxT1u6yQU2f2vmgPRKKHBZj9oqk0Yzlp70YH8VmttZsVGpIudBsMjtCSc/dKVE7Y/nH3+uIzujCLR5EQBgWo2nHsT7uB3UlvA1n1rGVxnFHSYIXgFMUAks0IdoKqv5k39Pr4YE2LxZnHf/V/fwSuyjFRkUrx4Hb9gqU+eWzBddpl1YrqG0jGFkPudrFx734QFC0+QuR3uvIy/oNvb3A6VBj1aHTucDmzVND9r+8LEVurSBCzf6j0Hd7vcHpEtTLOpmpJGsWnSD1tiNPub5pbwWuBHe0ijeSt9wsAWDQZtH7kSyeCqSMwNS+Oakoz/T9E+xzZbSNrhGJ0CzFrg5WCxXdARyrbJtqKB+U308VVV/HpWqdSrFl0qagV63KMqKbyssovgphtRu5QxNc8Heuf/cU3xdFjRJs= X-MS-Office365-Filtering-Correlation-Id: 0a407823-b77d-4c07-2810-08d44c85cb01 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:SN2PR07MB030; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB030; 3:dGMrzsU4glOy272k5qxGzEV9NptV23r90Njz38n5mUn50caCAJvcwlFU6bAWJmn2fPSEGeiXXXw0FKs0iS8gW2gNA8+VgPIJSkcCwAarxE6PYCTzvyn3xUCmZObUWldl1y2PDZdphki3Wl2EiXjHS1bNc4d8wRRMihgifKdhOQHZAPEh/AgMIyRIv3SAFJTnFNiQ8y8UDkFwewM6GmAw6HcuJ57M/VkA7LnJobD94mSutUY5YzEx7AOJ7cWlrE9VlxRhXqQ9h1/b8Cd0N+UXsdAI1VqnmPu0DFP9vbxpM9yQvOq6lqNasZeoikyk4nRxs3Nh6C0X44w3+xSO29coSc0HtZqtb8X5XzVJL/eEIGEv/4Fi4//CcwyyLjg1ce5U; 25:Fmh2Zk8WDTvf71Qb4YpXLj68fQWHTHtksg8MFQpckWRxJa/KKvJxi5QVl5jU51x07j1x7aNevun/F6Gn04ApyduK9GCL9awcoTx4cjO7/SRBdJxGNom3d/ZFJs12tiTnKzzOkduMKPtC/Oo9n9VPvIFVOMxAK0IDd2OWBiWaUd4yiM7r/aWurPwAJwXECM/1nWm/MKhloXmZ93ZjOKanZw8xw0i78RInSmBMVff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soft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13024025)(13023025)(5005006)(8121501046)(13017025)(13018025)(13015025)(10201501046)(3002001)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(20161123558025)(6072148); SRVR:SN2PR07MB030; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB030; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB030; 4:uydlpCKdBxYUPq36zN23KzQPPPdbYcBs0cu9UxFOVqVKu7XY470IfwANNb775JLxb8NprR8slUBghynsap/4map9kXseTko9K6Qdhwq1283pvErFZc/fB0aLtuXNudS2kXP8hZB8IVxUMak5/du8R3AuqbX1OuCI/3W9S8pADfnTZbPyiq3CR7qhOnwoF1hbFoUwNtnOkH5weFMtd7c6zJfzx0EqRC3o8o0DWCmXbCws9M4YTw1BFEjImMGRDLkSSx49+LshB3nqzW9x5bSiZrSGGSEN0kmZwQTA8yS2Lq8F0Z3ZQCe/GV85t/N8fw7YfKxn6oPVxkhsHUakz9OHr5uifF/c5lOX4HaDOz5B+AvMuhz6k6azD9beqvFN3pt46h2CzChYYnNaIs4Ez3QV2XVIhv9IYlihhV0nZvXNNgx3+1/dESZ0dOog9IlBVDAM5D7AURzzM3wwqj6i060QGFqrsUrK/Uz0YGye1lcS1AbaKzajUafb6M0qDVzmLNRRc8KfsmU6g2UPIC+7b24ZGxN3dLidm/Lv40ZFTbVkEYt0ju7tD7nIkzti/E8ZpKLhbsw9Sp6ZKldkWDlhzUblBP1x9NjeyJqezIvyE8XGOWNIvVDMzZbuwhQGBTjYSS6LnALLplLdy7fYrN3rph9KBrtYT3GA5td27jtXtStNNLOLdem3C2XlndE9B4575IhWNNwCEvD5PcQHH7lNvRIBkw== X-Forefront-PRVS: 02070414A1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB030; 23:HCDspm9UcLi74LhB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V/SJ/Tba5GI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB030; 7:TJSMvXdHPYTnGHQJ0cZnJMgBiac4qA9Mha5T1BaIKCcHQE1igld+42+SavltJV7hWvUvWu9f7fdaLltDRaOztl7Wi3UgNU6/WQhi8fetNNaaoFF2TFZ/mKstUHQksxwuQw1UJek4RmlAK5xxN5QcbWAyx88SYRBc8DhUgz1fwOJh6CZF52xnQC04TbNLblCVid3cxB2tWpzqSVTUzXNSVFgLLi2SnWJgbqlVjmpoisb46wtyr0gENubyafd0qXqXXRsQ/edHtUJP/MWXhsnSErhBjgPXp1pxhc8e3svdbIReK+UDsywpya9D8zZH2HHAxvbGwNADmPQgVhBt5tsAqplCSh5UdTPfN7tEpdSQi6Larn7qDs15gB7ZxH8N+43DhlRZb6VwwhFSuZXGQFsWswbQwwGEstTvQpspzKTDAF6TD9FjN3q1Z4oJOpgXxIVNu5UUiv4uGx056xd7wNcRo436COh3BsDuEtl+gyh2qH//x9AaRZPKtrfNEccRWQgJ1jVubyy7cRnLb1QwhGUGRQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2017 22:41:28.2862 (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: SN2PR07MB030 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Joe Carnuccio Signed-off-by: Joe Carnuccio Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_attr.c | 4 +--- drivers/scsi/qla2xxx/qla_mid.c | 12 +++++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index f610103..435ff7f 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -2154,8 +2154,6 @@ struct device_attribute *qla2x00_host_attrs[] = { "Timer for the VP[%d] has stopped\n", vha->vp_idx); } - BUG_ON(atomic_read(&vha->vref_count)); - qla2x00_free_fcports(vha); mutex_lock(&ha->vport_lock); @@ -2166,7 +2164,7 @@ struct device_attribute *qla2x00_host_attrs[] = { dma_free_coherent(&ha->pdev->dev, vha->gnl.size, vha->gnl.l, vha->gnl.ldma); - if (vha->qpair->vp_idx == vha->vp_idx) { + if (vha->qpair && vha->qpair->vp_idx == vha->vp_idx) { if (qla2xxx_delete_qpair(vha, vha->qpair) != QLA_SUCCESS) ql_log(ql_log_warn, vha, 0x7087, "Queue Pair delete failed.\n"); diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index c6d6f0d..bf8e1e2 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c @@ -65,6 +65,7 @@ uint16_t vp_id; struct qla_hw_data *ha = vha->hw; unsigned long flags = 0; + unsigned int count = 10; mutex_lock(&ha->vport_lock); /* @@ -74,13 +75,14 @@ * ensures no active vp_list traversal while the vport is removed * from the queue) */ - spin_lock_irqsave(&ha->vport_slock, flags); - while (atomic_read(&vha->vref_count)) { - spin_unlock_irqrestore(&ha->vport_slock, flags); - + while (count-- && atomic_read(&vha->vref_count)) msleep(500); - spin_lock_irqsave(&ha->vport_slock, flags); + spin_lock_irqsave(&ha->vport_slock, flags); + if (atomic_read(&vha->vref_count)) { + ql_dbg(ql_dbg_vport, vha, 0xfffa, + "vha->vref_count=%u timeout\n", vha->vref_count.counter); + vha->vref_count = (atomic_t)ATOMIC_INIT(0); } list_del(&vha->list); qlt_update_vp_map(vha, RESET_VP_IDX);