Message ID | 20180911171827.29016-12-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-2.web.codeaurora.org (Postfix) with ESMTP id B644D14F9 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 11 Sep 2018 17:18:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 981DD29B1F for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 11 Sep 2018 17:18:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C64F29B23; Tue, 11 Sep 2018 17:18:48 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,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 3040729B1F for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 11 Sep 2018 17:18:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728071AbeIKWTE (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 11 Sep 2018 18:19:04 -0400 Received: from mail-eopbgr720089.outbound.protection.outlook.com ([40.107.72.89]:8463 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728010AbeIKWTE (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 11 Sep 2018 18:19:04 -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:X-MS-Exchange-SenderADCheck; bh=QM1qL/NFJkzmlGlZVi6IdSbbjcMbchfP0vf9qdje6sI=; b=U4CSMB0ZxzZWkgbDnWDCyxoIhcconamrnnGKgBKd2/Z8GE+9R3bUA271jctymYrSv2bQ+z1WG2BdaXisDDL+2eK3y8H44XEwtykgU1pPV1PvYEOuEIgDclhQb3fLOWGUrcdrjQ5K8kfmflEqkFeRr6eCYCd77d/Wljp0cmb4KRM= Received: from DM6PR07CA0004.namprd07.prod.outlook.com (2603:10b6:5:94::17) by SN6PR07MB4399.namprd07.prod.outlook.com (2603:10b6:805:58::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.18; Tue, 11 Sep 2018 17:18:44 +0000 Received: from CO1NAM05FT061.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::201) by DM6PR07CA0004.outlook.office365.com (2603:10b6:5:94::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.16 via Frontend Transport; Tue, 11 Sep 2018 17:18:44 +0000 Authentication-Results: spf=pass (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=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT061.mail.protection.outlook.com (10.152.96.179) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1164.5 via Frontend Transport; Tue, 11 Sep 2018 17:18:43 +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; Tue, 11 Sep 2018 10:18:30 -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 w8BHIT85029095; Tue, 11 Sep 2018 10:18:29 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w8BHITBh029094; Tue, 11 Sep 2018 10:18:29 -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 11/16] qla2xxx: Reject bsg request if chip is down. Date: Tue, 11 Sep 2018 10:18:22 -0700 Message-ID: <20180911171827.29016-12-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180911171827.29016-1-himanshu.madhani@cavium.com> References: <20180911171827.29016-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)(396003)(346002)(39860400002)(376002)(136003)(2980300002)(438002)(199004)(189003)(26005)(8676002)(76176011)(36756003)(72206003)(51416003)(186003)(478600001)(42186006)(106466001)(69596002)(5660300001)(16586007)(356003)(50226002)(1076002)(316002)(14444005)(54906003)(87636003)(6666003)(110136005)(80596001)(50466002)(48376002)(11346002)(106002)(446003)(2616005)(81156014)(336012)(486006)(47776003)(2906002)(44832011)(4326008)(8936002)(305945005)(81166006)(126002)(86362001)(476003);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR07MB4399;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT061;1:6+ONMVZKE2wNoTpd7Mzc3bFwaUPO0sDE7gVn/5GROCADy25lFwFXJN764TFy72bUCULUewPwfst8pvC3aAjk3MDVAwEn3zLF0XS+PjLWXd9ejAxMqY4RtVOzHy3SWy6q X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2da5d393-97e2-4690-56e0-08d6180aa069 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:SN6PR07MB4399; X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4399;3:sIuR+RSxmK/uCY0NM96qEedWXuqddFV+lm99icXzuFaOnmK8GGDLaxmfrIp5mwa4en5+25pN0Uy8eywrUeEtULIKIpxuFLjA2oPyV1pkm8apFVurTSAocCuKQrW/rz+ZR4pvvsA+fauXeBU/o4ioSmXfLnLBWBl4BYPAzaIcFl2nCwmwqVrHvsB09oGwAq/7guApMM6xPcvVdudYFwvvp6XvI2RTb24plAR+LdjrcywfMBNpEuhc+lBhYylFta5lsFBq1RSRFWW2GFeENWqg/XEKBsWaszw+i6sRdy8IbqV1rW9LJ9HWYU91b96h5EVZkHMSYirB5fxOO9hGco7UOmA5+FWc742Zv49dlnieXbY=;25:0IPkC/PhSNvvuUjCqhGjWJiP1Dvl3tnBC2ezyoJr+Q1wta5Q5VOzbhwRTQs+W7BSCOqSqIEABDtqUwRJMHhdKJ507Mv7IFrHUkP+/zgosbCR2vnbSRWt4+OL2CDPY4W2cd+J+/r5GXEmm3dMd03eXbDdq9ur1om9EhOETl1xwjdCE9Mfcw3lb/fPJxc7GDK/K+WWdWmBcDVtptKndhhMUxfmNBD8vSDr2yhhaQSwFg3lFYQ/IWVu0TqDmu5g3oo0O1qfiXkVlNqogGcs7R0T85bAGV9iTH5Cb86KGqoq9RffQ+dgObSrdmI+Cv0KLdP5G90Cq6WR2fTQj4ZF1nxxuw== X-MS-TrafficTypeDiagnostic: SN6PR07MB4399: X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4399;31:UmMwQt8zwWT1w+b0PIMAgL9+D6bMrQy9+SsIByCKcMkVlahA9nIhvXqbsBxHXmeSEwautA/7y/tC0dfSw0oHShq0bTn3oAH9SvfpwT8DzOjIFvTL3Fvt7exTkU5rXj+Z/YwpKusbji6jxHn4e6s/DldmKqW/kTD8MKoE9xJ/5ntOAMoBfYM9vIibdkQlS+r6GUoRi6paIouQ4RACji1zfKMegCGERVts9FCzIEp1c0k=;20:lbPXtVflEcfZYT8DMMevpIJ0EzbmbcrY4y8hXeJtxjwFiwPPKBE/1IkOYSed6UiCv8PbHkb+xO/0xwqj26+GtHBNiS/+Ft6FdWkX3huSKRpTS5aoEh7LJQahRqZ0ADOiE6P7nHBAJAgUtrZSW0G9l6LT1Eysh+W7DQicwe+h7gTSqiZFmujIrDoRnIwvXVJXOW5KMktCusD1QPfID1OXxn3SqxBX96uUe1rYYvfvE9fdvXhEBWIVpEogywRE2uwNYhxt8bJkv3mlNi7kLFAMosAhdwLvkE3V18z5Np0WzK9s7ltNVGHzuhjWWZusobHc3eHzqDPiRCY9TzhUWuFGkxZo+LXLrUwE3N9fDq0iw6B0UFJjAwXFZe/SWDIhG5hU+getTu7EnM2pRbj9783HAPgIUT++7EN89gR5F/A6lDDBDaMB9jIWmRq8T5Goag15WWcN+smEFmYxMkFZciZUuJOQJC8tmEpXJsF+4+o6j7j7enQ9bgL/Z9RF5KJC4ABx X-Microsoft-Antispam-PRVS: <SN6PR07MB43993ABC1B96C97E80D11869F5040@SN6PR07MB4399.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93004095)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:SN6PR07MB4399;BCL:0;PCL:0;RULEID:;SRVR:SN6PR07MB4399; X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4399;4:VKJsWvKMUnjhZ7MSbIc2BGt30S6/MmONOsVKPQ5TuMqbj8k925HdabeZTqh/j5HCtZ3vYj/R0Tyi++Ta3bbUVx1EmxYRe2+xPVKh1ViPMKyrsO4hXXhzDsqBbJUJm+VapQFTEgWWLnvY3zXDfZM/G71B6qexzACfogMTjXhCWvqolS8Oupty3V8QwdReY4q7k0dR9d/c3C6fz3NiLqdWFMdObyr9KQxU0DLHOPwOMJCrDntm9mYkcoSk9Im1jzEwFnVQBVIUiTNJoJvUmk7gpmdiAK80Cn3a6r2oR6fjUfl+tFp37Fz7Kf2eRDfvCMDx X-Forefront-PRVS: 0792DBEAD0 X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4399;23:B1kA3pi1A7NIJhxM9XxJcTUmi7o0H3+qqfb34NGVGqajLccjhM+ZWC3g80fotngoFZqPM8Wk8HRGBvDyz6sLbnditgb0XuSySvt3ZCn/PETwXjxjERrqlRijr8ngKXDMT0LLws6G0/FeVegR9SSqUZjaoLQAvNmAY62Ty+f/ihAYeRQU+ciyFT8+b09Ai9AR2EPK6YA00+93htBJRJRtmwFZ5uH8LhqUtgx8h6C7xWe3HZSjcb+QEMIW2QMa1UWdhWB3c6oV1piHu6s2g9SB8PvQQuqfBILyciZrOu/vue8zNHC2ctbKZRNyIbCD2nb212uJ6SqCpORNRyvS7jAljdLQqKZ+q8ylUrXPX7rtgJNfu/OLk13LFnBMQ0mGDMzWO1WKbqwH4vuEIVU/F+IPg0EBwqnhjivRWXrfEfhSADrx5cFpcuFe62r3a3u45oglQdIJVSps+HGY4iMwGGTvxHnBxVkuozi2O9I0rlhmND1E+HS6YapXAI6svpPVOjszaZJahdWkklZckXEp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YHkGALnBytCbqmS5WA+LZn0sZ7ahY67t1SBT+aZKIA1QH02G2Xg0XZgwfxlWR4Co1wmlj+wnE0Vgmzho8TGsIQjsclu2YL06qQJnUeAw0HA6S+D4TlTH4Z+q+4uWO17AKKx9ErJaxxbJJeJh4tD5vD1GuYrrA8sFRgk0lBF6L+LdF72HX/WRNQ35wRoCDptT+dU+DUS7mqnNWoUbs+msbtESaOtatyoZyM87hSmt9xAl9BZocA5M2t7Oa4vXHBAqfo38AXsfhAkIEDDdsR8rglkn0lcGyGuWDoAog4PSeFRpVDFuynnCo12Uu7ZNaXfilPzixSEQvga1LsZeJlYCvjHoPfNFWx57H+vMVri4YYSPkijxiAlLyJ/NkJgFVgx8Jt/Xb+iBzo2JDdawinO/z50HjdT4mFFYqNSB/b/m4KahHRUoEqwIa4hQ==;5:tpNcCf/uME6eU0L3chnJn2ddDmLOIBIxVJV1eRxJSb1H+YSQ++3llYM/gp3aGO4k+3C+sWO+R25jwrI6Do7755JiBA4RuM83EOTcoG7SH8nGwDQqbBjXcPEzQqDUmNl2fg2oVyR89yi71ZuM+7rXATOq4wHJF2Y4RaexJHPBWgc=;7:T3k2tFuZYo4+9h6c+xq0WA5dWmuvO3kzPIoCOA8d0z0pPQfYQCVf4q+qvE47gDcemdEHoe/9KODSfb5oLvo4wL6JxENOg+9qEVDziCUpP2MO+53uoH5qkCIF94AViMZhGdCp6y5hSbaY9y7fijlzYO4JnI9I9dq+gTP2GhvyWOVz66XIH9DgWoJRBD56rkyuklJQTrYkxxMytrpWT4zm4kDakfAN3O7kp9QL9bLikFMvLRpksr3u/hyu5OXP2lGn SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2018 17:18:43.6845 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2da5d393-97e2-4690-56e0-08d6180aa069 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: SN6PR07MB4399 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 |
Series |
qla2xxx: Driver updates for scsi-misc
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index c11a89be292c..4a9fd8d944d6 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -2487,7 +2487,7 @@ qla24xx_bsg_request(struct bsg_job *bsg_job) vha = shost_priv(host); } - if (qla2x00_reset_active(vha)) { + if (qla2x00_chip_is_down(vha)) { ql_dbg(ql_dbg_user, vha, 0x709f, "BSG: ISP abort active/needed -- cmd=%d.\n", bsg_request->msgcode);