Message ID | 20170602161207.6660-7-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-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 A109860365 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 2 Jun 2017 16:12:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 931A228556 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 2 Jun 2017 16:12:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87A1128577; Fri, 2 Jun 2017 16:12:28 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 E1E1128556 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 2 Jun 2017 16:12:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751187AbdFBQM0 (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 2 Jun 2017 12:12:26 -0400 Received: from mail-by2nam03on0054.outbound.protection.outlook.com ([104.47.42.54]:15074 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751172AbdFBQMW (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 2 Jun 2017 12:12:22 -0400 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=XOokkIjBr7cbZBTldQGTQFWRoR1jPFYkdEJMeWBcLRM=; b=RP3gip3mWiBQD0IKNTfufsHbG7hb36nYJPoGtTjLYS7f8BBC9+VJI/PRA+ZoIYEW3cFOX7a2uMZ7r4x/TQ8wwyoGuatD2Vq4BTwO31arcDNoTs9Yjrlj4B8xZt2J05O5inBaZtU9T17/uCjZOgU9S8L6iA4e1WUoPVm+nIZZcRM= Received: from SN1PR0701CA0029.namprd07.prod.outlook.com (10.162.96.39) by CY1PR0701MB1583.namprd07.prod.outlook.com (10.163.20.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Fri, 2 Jun 2017 16:12:20 +0000 Received: from BL2FFO11FD055.protection.gbl (2a01:111:f400:7c09::118) by SN1PR0701CA0029.outlook.office365.com (2a01:111:e400:5173::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Fri, 2 Jun 2017 16:12:19 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.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 BL2FFO11FD055.mail.protection.outlook.com (10.173.161.183) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1101.12 via Frontend Transport; Fri, 2 Jun 2017 16:12:19 +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.347.0; Fri, 2 Jun 2017 09:12:08 -0700 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 v52GC80X006719; Fri, 2 Jun 2017 09:12:08 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v52GC8w9006718; Fri, 2 Jun 2017 09:12:08 -0700 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH v3 06/15] qla2xxx: Use flag PFLG_DISCONNECTED. Date: Fri, 2 Jun 2017 09:11:58 -0700 Message-ID: <20170602161207.6660-7-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170602161207.6660-1-himanshu.madhani@cavium.com> References: <20170602161207.6660-1-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)(39450400003)(39840400002)(39400400002)(39410400002)(39850400002)(2980300002)(428002)(199003)(189002)(9170700003)(189998001)(36756003)(6666003)(4326008)(42186005)(80596001)(2950100002)(86362001)(305945005)(2906002)(47776003)(50226002)(87636003)(72206003)(5660300001)(1076002)(50986999)(76176999)(8936002)(478600001)(33646002)(101416001)(81166006)(356003)(48376002)(8676002)(38730400002)(50466002)(54906002)(105586002)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1583; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD055; 1:tsmwY3mnYhV9HVTU6gA5M/ckvNG4AXQ5lRd//FLU7rAWIvt+Hu5pc7bn6hRX0XQUk/hFHBxl4Rz2d354ofoq8m0UH0kh48dWTU7cYzc/k5L2zL8pZEIelaz6oJRXBXAbnT4FeOD0NuyLYU7tOGM6wyZJEck9wK8XMn/ZWPPYS7duBj+lXVL42Z7xipYUPmNyA8WzATXeGWkIZYsZwZjb8DfNaM/9Pqd0mNSsbs09hVeCjwwOIT1Sl8/5uR296ZCdook71venUCHfMJSZQUDiry5G2E42omZdG+4s9B7KHXqX0dmcQScfK/XS4NHOdG7PWhkocgzgfwUx/n6G+s7buHgz1E0SsOl3TFin5pCDMMigAIyJkctaMtT4R8TJcILJ1vvzU9hAd0k+oihPLRgzNwRYeKWAwBVBlODrW/eh50k/R87Y5MQXvnx7U3QMglNsHaXDNmYCZ8Ml93tsZDBQARdSwFsrfwuZoHfuvqBssLY/cmTI2JU697KIX37FmJrt X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0701MB1583: X-MS-Office365-Filtering-Correlation-Id: 81262d0c-b9c3-4e93-3190-08d4a9d2251b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CY1PR0701MB1583; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1583; 3:JWlDsv0tkn41OU2YLHwsWJ8MsrNd8eGBKDwCFbg889oMDpnepvzciyPdwqhYouF3fZMxxP6oLzbWFw7W3HjeReg+Mfuq69/zRq4vJmmCYTYMBcyEoKzqa5QR3X8F5d9cVYJu2YmgJMWmeNEBueCrgUHO1t50OekHH2e8b5b0ykmUoTV/Qafphun6r3JgS/dQBSzAS/WtEaE1SVPYkrOjD+jr+GLyvzT/UeYedhu7DjvP/BWdSAezX0gjLYF+MJ9fCZ+IZUSL5obS2627iJmkbcFVu4fSWRm5uD7zh6uaGAjCH+wzFTQpjPXsmuGXbNazhtWxikVjhFFoqQO5SlCXS76pLXfwm1QaPHe7kY7D1oWIqM3rr0ed0ZMol8Dc7kBLQyD06JxZWmx1VD5wmlFINFMbEtrAduqXWld/WUKbgV+Q0ByQeqCsPvwI7C9tphFQWNXrjRp1OA9kzy+2WEptS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pjXVUj9RBSJ9EN7pbKgZPRJhKpP3Bs9E9Y277pn5tSfYcpYYxwvf3sWkpFMlgIOnTzQpiO6c/YWlb1g4SL8XqW9006uPAM2/+9nobcnaNL9+63yVGa91glN1H+OIGKDRgLOcYTwHdl58NXsxuzpRzvgEtut43eWBoGMDoYW4jRWA7F/xHkk2m8v7EHaiZfDblTKE/ewgb0VMAHcZ8WJ/el9y19OwPP/hH3BShTmWnhSKzVR9LVy5/lktk30G0QS6XIItGd/Fda5XpVJOS6UXU7R/UB4mdegS6vjaf5t3j2BUZ4FX3uqpy+WpFX0c3IpyKGckC0dH8lWibCmQhpYU6/M4f/zoNjC0FYRGu X-Microsoft-Antispam-PRVS: <CY1PR0701MB15839A0BBC892C56581B745FF5F70@CY1PR0701MB1583.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0701MB1583; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0701MB1583; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1583; 4:ioBqj4rgUd8oZCUnOUkJTyATaLdHhXxZo01EO0/l?= =?us-ascii?Q?AQS7aEsM/emdvjPdRkK3cj+BheNd6jdi1oYIQTgWJrifSodvrywblexW5oRZ?= =?us-ascii?Q?EjIMW9oeA2OQ6pS+s1IzwotoGpIbo2gvXFvLhznzrUVdK+WxZnkTUzeDd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XkvkdWNvUxZPbI8vEKu9Hx95uTnF?= =?us-ascii?Q?uhn0Izz9Zry9WeAk0NktAM+1IKSvXd3ncQ/dofhxvZrMMSbhY0AyT878H79k?= =?us-ascii?Q?Pu+XEspyGzeFX1JMBy5EDURLN8LEyOxk/LJPSXSE9tzLp2w4gfUZyR1bx+ld?= =?us-ascii?Q?aazFTEk5WZvXm/E=3D?= X-Forefront-PRVS: 03264AEA72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1583; 23:uiGangoCLOYUILRwNSMH7qiefA7CkNVzjk2V6+y?= =?us-ascii?Q?rWPvMwMv19SX851fFKiVaFSJiyTgf8TloNx1n6olYj5qWrTSP8MchG63SXEB?= =?us-ascii?Q?XT8zlDqKuBEGxkreFnND85hPChb0ceHFohkwdnyJ8nbfUAXjWvIC4YPdzQ/2?= =?us-ascii?Q?RWvBgalplqrnPjKJHeFaA9u/XmntzuURyzlis0AL6iCDwZkXgLBYn5XOKxk8?= =?us-ascii?Q?aI/fSuh1R2Ghu8QcmSUJopfH1e086CiCAvGYfT0s6RDI4BGzu8RWCpsh2VRr?= =?us-ascii?Q?d4FnZsUcwX3W0thvQtz/3Ksp/wgC+0XVJwe0LbO5SX9c90nkV3nRx7kCVYpk?= =?us-ascii?Q?P5IvsIE7SJa3R+1CgwComM1BoKRRwnQh3a9+gglfAN/UvVk0Nu9HfrqIstcA?= =?us-ascii?Q?LpfxKGHdJuyefr3xWgXhuv+cdJmLqRs/WdZo6BgXZMSbJ7iCjJ8EfVPh3spE?= =?us-ascii?Q?6pGMbVthSchkmRsBlHOzWWZBs9739MqaJfgUYrSKS0D0iIDGrPbd+izuEnRP?= =?us-ascii?Q?mDOASoS4MtF7sqtzQc3Atk0cPOBLprpH3ry6t7rzWS6vSQdw9i6vcNOeabNm?= =?us-ascii?Q?2uT68y3M37Xph7HKG+kx4UdP3qxYAbYvvGd/z+TwZ86/Dr3yfcZihUADKXor?= =?us-ascii?Q?v4bKLOZny16h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VelLcrPVzUqdE+j6DNTJfw== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1583; 5:9SKYSUPMUmUY2nmTLkdcXhqCZ/rFfPgFsDWJa516mZGF2LORbSI/SB7tttnkj61STu8ljMuQalLPiDBauqnxb3y6uKcU2es9xtSrwW78MjycSsZO029r8Og17/USSH2ODdyQ+wemIMyQARwBpKBJ69S1Bsu0bZT2xlEpra0DaBJ6wBZe/ZPeSdKFD3GFcrXKVU3AOJJGktc12F/AZZtSvDIHuv0Sm6ETd7wpwk1nouHZbNX7r9jmFIrch09BMnJViss533Owg304WtDomjW4W0/1DIgoaXhVCxQG/ggrCAel0peXoZvazfkWZCqwk3i32eISShaBeCdAjoGcvDcoDF1f/DHIYxhCtMpjTfZcX/zbDrWYuPbRWAhB3sRftuvKQRvZzZgFz2a32DouXtbAX9Z2/FLaXCbb6kBF7yXtSbz34e2xtSZyH4IuyywVxkk34MwN2E/k1/IibGAApqNgso0vZkA7GM6JBvW2+O7Rg9K6YatpXgKvbTJIjL8W5B3R; 24:Vda8RHzqgUO3bUuZfNWGJF4ioBWynCOcYGEerCuxsJxGO5Sn0oAyepD6WOcJephzsHq/IQqSWKtfixUfyDsLtN1c+6BNsR8pwKoiHENytLE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1583; 7:elyeXLnBgoIB/F1j8RBjF9cgdOkrzzzU/wJK5QrkuIXZbT0PbvPWsJXQtTSgzqJcbYvOu5efs5t/fY/yg53rzSy4NW8xqhLufdR/tdGqIib/YICjbi7z5UkPktSv8wtbFM8EilMIcXLny/uBD0hmRQ1UgZaMaG+A7Sn5PkSllyhc9dpfcgskRqsgb+L5NqUm4IhGayhK4p8Sded7BIXpc3MHkSknNKKUZOj4RUz8RMR6QRx5vdbh9tI3Q/DZCZbNHIWEYbKLxK5xzgP6ydPBxlN3K9cDZQQfHazdCtDpoXeyeUv1oiqr7z3FEcxevIAChGGmm69UiTczcPFIxgIE8Q== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 16:12:19.3260 (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: CY1PR0701MB1583 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index eddbc1218a39..4127f35b669c 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -4017,7 +4017,6 @@ typedef struct scsi_qla_host { #define PFLG_DISCONNECTED 0 /* PCI device removed */ #define PFLG_DRIVER_REMOVING 1 /* PCI driver .remove */ #define PFLG_DRIVER_PROBING 2 /* PCI driver .probe */ -#define PCI_ERR 30 uint32_t device_flags; #define SWITCH_FOUND BIT_0 diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index cba1fc5e8be9..fffa1f7cd8d2 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -124,7 +124,8 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) } /* if PCI error, then avoid mbx processing.*/ - if (test_bit(PCI_ERR, &base_vha->dpc_flags)) { + if (test_bit(PFLG_DISCONNECTED, &base_vha->dpc_flags) && + test_bit(UNLOADING, &base_vha->dpc_flags)) { ql_log(ql_log_warn, vha, 0x1191, "PCI error, exiting.\n"); return QLA_FUNCTION_TIMEOUT; @@ -384,8 +385,6 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) * then only PCI ERR flag would be set. * we will do premature exit for above case. */ - if (test_bit(UNLOADING, &base_vha->dpc_flags)) - set_bit(PCI_ERR, &base_vha->dpc_flags); ha->flags.mbox_busy = 0; rval = QLA_FUNCTION_TIMEOUT; goto premature_exit;