Message ID | alpine.OSX.2.00.1705121149580.1329@n6024mn55p0yw1.qlogic.org (mailing list archive) |
---|---|
State | Changes Requested, archived |
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 8075E601E7 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 12 May 2017 15:56:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7192D2882D for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 12 May 2017 15:56:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 641B228848; Fri, 12 May 2017 15:56:29 +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 996F228853 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 12 May 2017 15:56:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756946AbdELP41 (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 12 May 2017 11:56:27 -0400 Received: from mail-by2nam03on0066.outbound.protection.outlook.com ([104.47.42.66]:9370 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756893AbdELP4Y (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 12 May 2017 11:56:24 -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=hG2mN7e051I+jL60k7ntbZJQ0/zPZ4XSA4ybuT7auEw=; b=VfpQYlWiSKSD6YAzD+SpvL2RcJrbp6DvSL3wvMBTSonao60Jdd+tr48Ru7fWwT2JSc4U1HpN4TYx+yabPsROlYETNzyOABiruUEeh5GKQQ7f13uqQ4MUbFzHUP7neY1JHkRELI5Ld5VmynOY/0S7+KWbWlburaVzoS0B4zpLG1w= Authentication-Results: linux.vnet.ibm.com; dkim=none (message not signed) header.d=none;linux.vnet.ibm.com; dmarc=none action=none header.from=cavium.com; Received: from n6024mn55p0yw1.qlogic.org (4.15.251.130) by CY1PR0701MB1727.namprd07.prod.outlook.com (10.163.21.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Fri, 12 May 2017 15:56:09 +0000 Date: Fri, 12 May 2017 11:55:52 -0400 (EDT) From: Chad Dupuis <chad.dupuis@cavium.com> X-X-Sender: cdupuis@n6024mn55p0yw1.qlogic.org To: James Bottomley <jejb@linux.vnet.ibm.com> cc: "Martin K. Petersen" <martin.petersen@oracle.com>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, linux-scsi@vger.kernel.org, Chris Leech <cleech@redhat.com>, Chad Dupuis <chad.dupuis@qlogic.com>, rt@linutronix.de, Lee Duncan <lduncan@suse.com>, QLogic-Storage-Upstream@qlogic.com, Andrew Morton <akpm@linux-foundation.org>, Johannes Thumshirn <jth@kernel.org>, Christoph Hellwig <hch@lst.de> Subject: Re: [REEEEPOST] bnx2i + bnx2fc: convert to generic workqueue (#3) In-Reply-To: <1494343100.2688.34.camel@linux.vnet.ibm.com> Message-ID: <alpine.OSX.2.00.1705121149580.1329@n6024mn55p0yw1.qlogic.org> References: <20170410171254.30367-1-bigeasy@linutronix.de> <20170504174427.6hebbnqwfgems6dg@linutronix.de> <yq1inlass3y.fsf@oracle.com> <alpine.OSX.2.00.1705091015070.1067@administrators-MacBook-Pro.local> <1494343100.2688.34.camel@linux.vnet.ibm.com> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Originating-IP: [4.15.251.130] X-ClientProxiedBy: MWHPR04CA0039.namprd04.prod.outlook.com (10.172.163.25) To CY1PR0701MB1727.namprd07.prod.outlook.com (10.163.21.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d1cbcad6-ada7-4d5b-96ea-08d4994f6974 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY1PR0701MB1727; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1727; 3:MoXE6cF5ftaeaRfaBlG5s0U62u6p3W69YJmodc2sS8BSISN5x57jpzPAg1NqRatl7vl+lrfsgzMHAFBaY6sNQJ+a1v0egegP1dVyFRGtXd2vJI0dBnhiP/HN8zPVQSYv6v/ZrrTGppSizMTgFf0mCX7NVcKr3FwRpdweOQZRqQ9oZ7qhRL5Q0hB3D85I+UIpQP9QiVMKhX5+WH0+Hd7eSIkT6f7hunGA2kdDBncmQA3vENvJCg+a55K85wWeri+x5mxU9d+i412zQDfC9vmSX/65+XQtJJX0v61oxWClwLmbiNKONX2W7SJFxjaON0TJ+vtuDuB4U3QrD40Qao5EtA==; 25:mesFlQd1lJZ6cGyj5Mlh1CpyPsdXb0OxtWX4aRAAW6wOOSCGUOqD4321pHM3X9MyQ1XVAlNPI/+zZDqSmjRSAFaPGqH8E4VC3Jr5JYeUhMHrY/bf9dE/Dt4dIwIFTkM9bAlaOeH/R3RFf47CX08hOCC7gO0CfXLAL05kf7ULKvuKyCDU5litXByG+ya9Ovo2foS+E28GX4A+ED0MwuE7607d0vrq/2yvuGlpDSg9kXJlHYN1HWdAeFbAThK7FqXzMYuH1PkTN/BTZG6RIhoOaTmWKCXJzezg7X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A59EE20@CY1PR0701MB1727.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(209352067349851)(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(6041248)(20161123564025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(6072148); SRVR:CY1PR0701MB1727; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1727; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1727; 4:8jZSFjmmrH0TFSRxp1W3v0CLUIWwFHLSlfdQSmjvz8Vkpd0Mu+HMrkdmZZeD90P5E6pX62ZXjY/MIxFi4xcpj0alS1UMpJulyQG41gmzKELthg0/tJG1puFDCJRTsZHpCmGnmIp+26/KucVsY4B96+7153b1LfT1vFJ6dUxrA+KpCkVOTWGBYhJdtd1M4OZCSnvBu1pxZmXWXh4tmghBVydv6L6/0s/mKQ3AWMS4G5E+icJnTvfPaE3HS2v27HlkxdRs6wVwNdHbQP6639P/4pPgrIKm3jOXeFdiuRq9K7jpT15fdhdFOYmd5ckKu5UTBcTp2Z69VNlT0C4e8FLCpttVILiah3J/w2fHxK2jxFu2he5QPRP1/ZiLLVHdpmD40FJerme7FJ9pjb62Gb4mHhTAOqJMNXUlNMHyXuKRY0gSwAKWlC/fb01lXfh44ZeIW68IuBBWzHwrw37h7zF3AxYBy+t3y//eOb+Dxjb4lpo+8Jzq/svkqOEzz4S/fOvc+dEPolTiYb0fTv+U4YHJGqMFYsdHg+q6CXtQfMJLuK28O4lNQNEyvYZD0u/0ymbWxJygmDs1gnq2jBJbAmJTJ0Dz+pJCRsTs2Y91f4iaeQi8OTkANIsMOEavNNTtc6BcIvCMFvyrkUTyi+jMtZe39EF+kTcznJ43/Rzd8Zee6rkAys7SVuLLmAsTcXMZ08QCC2Wq0+YsSkiqaDtYtSvCYaNU2SqJNGr1RlRL7X3+HvwqmE690azitYke9u8TU9QQf3ZxlqscqAq31pezDzTkWQK35ylfBdi7UF0FTHfDMPMAmhj2oh6+dtJVLjG/IvSFHmNLawbqJ3RNWzW1B1qexI5JteIUMPg5z6MJS7sr53M= X-Forefront-PRVS: 0305463112 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39400400002)(39410400002)(39850400002)(39840400002)(39450400003)(377424004)(24454002)(93886004)(6116002)(2950100002)(6666003)(6916009)(66066001)(6506006)(3846002)(5660300001)(54356999)(7416002)(4326008)(53416004)(42186005)(25786009)(7736002)(229853002)(23726003)(50986999)(76176999)(305945005)(189998001)(83506001)(53936002)(478600001)(81166006)(5005980100005)(37156001)(8676002)(38730400002)(55016002)(47776003)(2906002)(110136004)(72206003)(9686003)(6246003)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1727; H:n6024mn55p0yw1.qlogic.org; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1727; 23:CgbQAOb7XgRpsfJL8+a88ytUyVNGZR1PPFQEBN0?= =?us-ascii?Q?1nG3Aoi4Cvf1jX8ElEsV5UizR3rHCsT8elqcm6TvZPCX0kkJ278m0gik2hkP?= =?us-ascii?Q?7r2SCwSyu8Bc7ch46uGEdOb7Kb2JwHkGyU2rCFHas/iItVYwJuH3oAYoPKjI?= =?us-ascii?Q?U9Xu/vV7D7mGmP0F9ib3ZMIeEt/zTnA8Z5OXZ7T9W3kaU25ulcXtIM25fMEA?= =?us-ascii?Q?sEgxr+VHbRqj57yWcptF+GO5UwdjwvVo+wethF5KE9o7v05XOMPevrtvswda?= =?us-ascii?Q?gpwehtBCqRgVdc/Tgg0Ek10W31+4OS407uUgbEW/gal3G8TkKZ5aSmnBWMll?= =?us-ascii?Q?rgu+NrWAS1IBaL0J8bmdqTFu+HFAVtMQnnzWcPNrPX9MA40zCIlCzZcDuq1s?=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TnchJKLVBGNNyrhWsf14iWo1pR5wwtQTBj+OJpTJII3rc7rclvQNas4NaPLiR0oGUwWKqYZAFCdzvZCP+mLmBVCzuBtUpYgHo4hIcpta1irH5AhCkTq6yVMhz9D6M2YQKL2Kki3ObdIZ0P1nGDPPy5TY4GaH7deS9z6+LRnzAJCl8UUidFf2UB4YU56PY+vvZNK7yVaqrXQI7XSXSxkC+IzkTcN74sODnGScyVy32invVmsej0NTfu7+lr74Z2Gmm4BXnsv0pUJGOlsepl0iecOLPTNEIi6fJ8n4RVO3Wez5UEErPJq/wAX0cB6KKEMWBCCkwJyyjNdIDGsfmfPKHdLIv/elVOLX93EHoOY8zqVQbZ0KqMFRGTrMs8cPdKtWFTqGg4iJqjWYUDu8Vs2dqo0wLl58ngMN58TpoZOheDiYHys43Qk8Y2FzuYH4kCypXSaYdKOip/j2SATjx9SW7Nt50Q0kq0CvoFff58cA5qitoy2sz2Qw==; 5:kDeZxevehhDt6jis2nqm2HMkjKTYXbamuMDZumcO2BxG653sENijaelFNQTSliSxNYx9PHICLxkPj90wlmRFs1iA8YYm4MOpe0LsQzWvQvNovHhkT25HLmb/yB6unIeLlW5kKGP+p5ZwqLObAe357A==; 24:2LtkQJEU9NYdYCETbziRDHMoD/SiVWShOtt/ARMUwaYXq8BUMyDryuSvowuZ87wusevycrcj5cl7ho/dA8lG4iXSQfapibaCxEPHXQqSvg8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1727; 7:7gDXZb4ulQJL2tJ6FVfGtPFaAn9is0FBRN/6YbO38Xc4jEBpJ79idShivwdZFh9Z1RweFtjYIViCmpiRf2H5bOV4t5RfF8vRej9pNRxNsE1zcCgDGjiU381usPWi73dWGMeKzGt+V8HpLH4NSTgxwe4nv8HRtF2SpXky6fgyVp2joUj8SvC+1CHzt3zw59lUxlXVAbkTJVkODovKJRvM4iYa1OhFU8b027r3z0FNwZIbyCTMu7hYF6oH5FOSepx52xOFOQwXWEBmwbImKRTYF38RWEmyUhoih7MDR7gyHAgyUF3eD49zSK9gq5LlEnKe7zjOnyEQvu1hAm6QLsUqdQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2017 15:56:09.7421 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1727 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/bnx2fc/bnx2fc_hwi.c b/drivers/scsi/bnx2fc/bnx2fc_hwi.c index c2288d6..6f08e43 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_hwi.c +++ b/drivers/scsi/bnx2fc/bnx2fc_hwi.c @@ -1042,7 +1042,12 @@ static int bnx2fc_process_new_cqes(struct bnx2fc_rport *tgt) /* Pending work request completion */ struct bnx2fc_work *work = NULL; struct bnx2fc_percpu_s *fps = NULL; - unsigned int cpu = wqe % num_possible_cpus(); + unsigned int cpu = wqe % num_active_cpus(); + + /* Sanity check cpu to make sure it's online */ + if (!cpu_active(cpu)) + /* Default to CPU 0 */ + cpu = 0; work = bnx2fc_alloc_work(tgt, wqe);