Message ID | 20180702200200.5188-3-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 0E09E60284 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 2 Jul 2018 20:02:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDB3628B13 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 2 Jul 2018 20:02:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E009328B53; Mon, 2 Jul 2018 20:02:17 +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 4BD4028B13 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 2 Jul 2018 20:02:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752258AbeGBUCQ (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Mon, 2 Jul 2018 16:02:16 -0400 Received: from mail-sn1nam02on0086.outbound.protection.outlook.com ([104.47.36.86]:27470 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752274AbeGBUCP (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Mon, 2 Jul 2018 16:02:15 -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=rwS73Z4kLcaPKXfPag/sU54C9uVVP0kjK20pDyCpRu0=; b=Q3AqVwF+0sJHp2X5oboQzQPMxBxL0OcUNre8CeTSa59rz3oytQB8amxnzfGjaG6X7EyBJLAjwzv0hrhZdmebUo75oMO1enEiANTJ34nxGu35mWUlb4s/0UH8vG2V7k7aBVKoUrINPHdzwzLPPSo57SL5HMPx4XltPWNw742dzmI= Received: from DM5PR07CA0097.namprd07.prod.outlook.com (2603:10b6:4:ae::26) by DM2PR07MB1466.namprd07.prod.outlook.com (2a01:111:e400:50c3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.20; Mon, 2 Jul 2018 20:02:13 +0000 Received: from BY2NAM05FT021.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::204) by DM5PR07CA0097.outlook.office365.com (2603:10b6:4:ae::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.906.25 via Frontend Transport; Mon, 2 Jul 2018 20:02:12 +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 BY2NAM05FT021.mail.protection.outlook.com (10.152.100.158) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.930.2 via Frontend Transport; Mon, 2 Jul 2018 20:02:11 +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; Mon, 2 Jul 2018 13:02:01 -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 w62K20fg005231; Mon, 2 Jul 2018 13:02:00 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w62K20lN005230; Mon, 2 Jul 2018 13:02:00 -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 2/3] qla2xxx: Fix kernel crash due to late workqueue allocation Date: Mon, 2 Jul 2018 13:01:59 -0700 Message-ID: <20180702200200.5188-3-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180702200200.5188-1-himanshu.madhani@cavium.com> References: <20180702200200.5188-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)(136003)(39860400002)(376002)(396003)(346002)(2980300002)(438002)(189003)(199004)(51234002)(44832011)(5660300001)(50226002)(36756003)(47776003)(1076002)(14444005)(4326008)(446003)(86362001)(486006)(2906002)(72206003)(336012)(11346002)(478600001)(126002)(2616005)(476003)(575784001)(87636003)(45080400002)(81166006)(81156014)(8676002)(106466001)(305945005)(356003)(26005)(69596002)(80596001)(50466002)(48376002)(8936002)(76176011)(42186006)(51416003)(316002)(54906003)(106002)(16586007)(110136005)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB1466; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Pass; LANG:en; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM05FT021; 1:ANlQY9ZNPL9U6Mc2qs0TVO79tpTsuDQIaI2rl1+yzJmOlmSVQiOLQp9lOoSHqFVJQlH2Y/Uli0gr+oZGo+BgOK8WVZ7TTXGgLJBDwrNumjn3YBPmFMdxBjmZsKMC7O5Y X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 10a11bd7-d0ec-4dcd-7ec7-08d5e056b35d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060); SRVR:DM2PR07MB1466; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB1466; 3:AN/mDw3LYkXHDvmnv018ca071oMPODaEA/fFSkJzWEuI6SnM18XOFIC373Wwkz+9kDkJ5xzD8xE4Z2OWvX5L+DaML1XyvvzJ2LxKvEWm3YGJs0tb4rhaHr7zDZ2oZAiafdQM5NzmUU6Y6Ksk+AQoXH9vo0fJJ/H7oPoi19NcUKxLxXTBvzXIRrnPRqp8OkHXzs6lGFwFdlf2ZvvyLw+b2lOcYEczVx2CMmxIo045doFn3pPTQqsPHQTt5QUbLoq94hZOQaSBiQxIyb7zBnI/Edlh+ZOEJ3yfPRtm2Lpv2o+vHVycN2QtAUsAVh36vVZGdOw00pBkXNUxuXAvgoqrSSxFAE9yj6W8qdxtVEz0LJY=; 25:eeilN5qz3LE9A3We0IidSAOu7y+Al56Aral1LxXzKehAFpCcj1iO3Ljfy5f2z679rTc17RUsfKvKaLqv08qlA34MY7AD9wKyrv2IO5XtT09mlj6rM+1acHR+ZIEgFkclU34WSWhBrVOgfmUvubcLGTeuObO5J5qJ1am7sJ9sfWLrnzGOyo4Jb0e0FdiM2QXAEdonzbWfI81mGtkA7uTsYPDD87lmv1kAocMldIBoc9KT7TUrtF7BG+SXE3TyQVsTn9zBzZBszCIjo58RoFuGyf2fnRWSxgNnxw4vt7m+wMizUpaJbL+Sup3H0Qyj944HFhjshMAdLUXZ9OjYgWno/A== X-MS-TrafficTypeDiagnostic: DM2PR07MB1466: X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB1466; 31:M1324q0XFNZDcgv1Hkwo8sc6LCdMzle3vywti/oQ6m1amlJTxdwU/0BKjF/DMdvakpJiOsPIDq/43Ft0ZldKjQcSufgLekLEArDahnoeny1txQ+Ur+Wm61ibym4AFCAC0srqb6YZZjRpGWhecYxyX1gWPcipPCOf5iUkfgS7x8CPk6ZiGQZWRWt44I+vrPIV94+zZClh62eL8ecMZV70vvnsbC9g9ZS4l86tqmSvaJQ=; 20:BAvOtuODYiX+hMhiiosX8btcHmaXXUrLrChAg6VUZ8sEyzL5V3DYymOZP5VpJCODEphiVdsWTM0IxuQjLPEpfyaZWkciHDCVVWpG+o8zas9F/Xi38OeBuiihXw9lvYoqic8dpT62wRfEGr1q798KzmUqHg3d2YgIUBmR1P9VJWyTyxzrx8mjzyRkulBnR+xD+ko7t+kLPJgBNZOsbTYFNzi+R+hvoaDbhSXa4xWpalh13Cxyp/oRVMwFKLAN+cmidbBRHadrAAcMTKQjU6ltbJoMomB4RuaSgTKBFcjJk415okqGBi/gfS34IcEkwAwpMXzipZPHinruRRPc++X1YFu/Jop/7dsL+u92c+ucMMzM2R0MnqwxiUQIToLP3njLE6PJG4XaCmmsP1nefwImTRdyTV9wGtTk7qSTziowv8QJLQsOlB7xgiaZLBB2yPGvEoNiTN6jA0nGsrBSG7qvF3UulGdeRMyU0/VE8xf0fzUVGeKUn72fvz9F4POkoWR6 X-Microsoft-Antispam-PRVS: <DM2PR07MB1466459078BC441FA3EEA5F9F5430@DM2PR07MB1466.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)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93004095)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DM2PR07MB1466; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB1466; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB1466; 4:JntAwjEhdHB5zi8tVH0qaopfqruX4R26i/F/URNdxnk1qQRai1oRG7lsDH7UQ8RE3WhH17cGDMELZUIY293/fyskX5z8ocMnN3D6x+7guYAnb4BDctNbqHt0g7QAs1wS0G26REUpbp9BLKa1t9g9xWF6xxu1FZ2GpeCXo0GRwIYTxI18DLbgSnzo6KWLQ/G2O/QaTd3zjm7XokNZKRBirxS9GTBDrLhsH3iPmBxH1NxBVSFXAUKooqa+jhB0nfXZvaYXU0Rcc44ZfhuXrlcbCl+HDqGlrBladW6lQO38GmGA/ieoxpiNM3Iik6t+mh+o X-Forefront-PRVS: 07215D0470 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB1466; 23:imnsivJYqMecf8EnmD+wzq2wibL8RrQblyB97Zx+v?= =?us-ascii?Q?+xjQrSyxVK0wnNUqVw6I/IS1M9KbuMrOHEJWxztEOaxu/ze1x1K9F2FZTwoI?= =?us-ascii?Q?Q/oSf0BBICKMKuNhosyQcR5c/jBte3kZ5F6N8k9CPtZEDCjPt0VVESyeEfjJ?= =?us-ascii?Q?5/3VYvQSDEHGoD1+IdsoPj+qR962gye+uyWMSRyLJG47iqDkZA4+9zqqck7G?= =?us-ascii?Q?QwyV+KdrqRFLKw1fgQEk2+P52XuKjVXU7Om8vhtsupb/nvTBU8fiH0Ul9iaL?= =?us-ascii?Q?Ns9iP2swoD7xoCpIZuK/QGC/M/gzJFY5Js2NQShZypPN0S/f/aGSTWAYnoet?= =?us-ascii?Q?LFsks6juaaAsyIl8WBnHjC5d9ZNR+6rNWlleRTvTrGF8kKJFaqX35zN2MV/u?= =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99Kk8kvew77qLo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB1466; 7:9k1Fk2qi6fohb8+21euEoc/tZB9VQrbHz2gWbyQmFY9DXxwLdvuLYYvtF1GCulwOSGAl4wWpe/V9WSEZDXJFCckrp3ttI7uHgyhp+xaNs48kZi7RaXfU/TmvzWZulQ1WwQ2LrtNVzOEArBT+hUGDEbetqrlemIAVD6rJ4xjvwRR4zqqPSi9UDxF0oehc4R9zBNykWOLdx3CYvEaQ3VdWBl2O5suSlteHO1mt2bvxcVajTNwSZrUjYDXql80Eeb1t X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2018 20:02:11.2913 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10a11bd7-d0ec-4dcd-7ec7-08d5e056b35d 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: DM2PR07MB1466 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_os.c b/drivers/scsi/qla2xxx/qla_os.c index e881fce7477a..9f309e572be4 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -3180,6 +3180,8 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) "req->req_q_in=%p req->req_q_out=%p rsp->rsp_q_in=%p rsp->rsp_q_out=%p.\n", req->req_q_in, req->req_q_out, rsp->rsp_q_in, rsp->rsp_q_out); + ha->wq = alloc_workqueue("qla2xxx_wq", 0, 0); + if (ha->isp_ops->initialize_adapter(base_vha)) { ql_log(ql_log_fatal, base_vha, 0x00d6, "Failed to initialize adapter - Adapter flags %x.\n", @@ -3216,8 +3218,6 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) host->can_queue, base_vha->req, base_vha->mgmt_svr_loop_id, host->sg_tablesize); - ha->wq = alloc_workqueue("qla2xxx_wq", 0, 0); - if (ha->mqenable) { bool mq = false; bool startit = false;