Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2849985pxb; Mon, 18 Apr 2022 09:30:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNZXaOIQpcGV1asRn00oojIq9/T5axnoYE7l9tXDyi1wH5572aGTv75+zUxwxhRK6V3Apu X-Received: by 2002:a63:b40a:0:b0:35e:d274:5f54 with SMTP id s10-20020a63b40a000000b0035ed2745f54mr10694629pgf.200.1650299457657; Mon, 18 Apr 2022 09:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650299457; cv=none; d=google.com; s=arc-20160816; b=P6GfRfTQpSSp3jJeK8DWXkdAzdjDTMKUBsJuqBa/Ghwjga/8Bkl0o4TUpbovulSljS nXCC7Rvg7iyppLU9gG6V9gETUL7KqUzzx3iz1lxsXs21ATlY11owMW+zazUcb1lC2WNF S7fmumrcq9Rydd12sXZf1T1UtND3cidKQLGUkTlqRLVOiGOUYTQSX0UMxDwBFFGt9wBE diBSxB1AT0kp9S0CiOiWTNzj5oFxyI73ooCSTaPEEVybQlV6PH9MiUH4ed5xV/2dFnKO WA0qNs8WjyxDHR4YScGHUDqQJ6TpjrMT/Qu5pq8d/QSUkIk+G5j/pc6AMt1hT1HFQvtl Ys3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eXhD1CWD3rqOaL9pALxeOYlCCuslqe5bZvX8OHNYqnc=; b=Nep4d1VpL2E8uDM/qGDjkjd6PJBNg5hYWAyh9wbNmN4uL0ABhYwvGJBREmpCa9StYh res/SjIgRyITdyP1VMMFoiQca7oC1QQH9JakScsjCFUUHg+ELVI/q1qxLaCnlm4W+sUj N6Al/q68ZGC3OSL2zPSlpu2XtwejmzEsEYRTtYAgXs/ks1oKHn0937E82/uDbODss6ML hp7z5WrC4pQufSoX2w/hEJ0LlzDLbXrxmmWZV/LXE/bO4HccsXyi916xW1zksk9tfhqp xtEIxRcdQApdpCwUh/xkEZfmCys5fp83HT3nngLPTzazHzt1UDn9dkWqS8uzAw1cJYBc VFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jNLdYFsx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a631946000000b0039d46296184si6113909pgz.838.2022.04.18.09.30.40; Mon, 18 Apr 2022 09:30:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jNLdYFsx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235270AbiDRNyg (ORCPT + 99 others); Mon, 18 Apr 2022 09:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244860AbiDRNa7 (ORCPT ); Mon, 18 Apr 2022 09:30:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA3B1EED5; Mon, 18 Apr 2022 05:56:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 15CB060FE8; Mon, 18 Apr 2022 12:56:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5D07C385A1; Mon, 18 Apr 2022 12:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286588; bh=Pq05aB3a4QSn6arKxcCMBZcFAjcrNpJ0XkZb+Q1+O+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jNLdYFsxGZ91KsK/puFdoDeyXJpjXzH8+moTKgfLNjV2pn0/y0eg6rBgwxEkPtDDS /eVtt0JXxhBc072rVc785VkePdmFrFyCYUwa4omjQuOic/kIfHiAHB9jvws/SB9+4v q5i1cRw9dIC2LclEZOL4Rb7PzAKEX0+PbHBAkkzU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Saurav Kashyap , Nilesh Javali , "Martin K. Petersen" Subject: [PATCH 4.14 183/284] scsi: qla2xxx: Suppress a kernel complaint in qla_create_qpair() Date: Mon, 18 Apr 2022 14:12:44 +0200 Message-Id: <20220418121216.941359834@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Saurav Kashyap commit a60447e7d451df42c7bde43af53b34f10f34f469 upstream. [ 12.323788] BUG: using smp_processor_id() in preemptible [00000000] code: systemd-udevd/1020 [ 12.332297] caller is qla2xxx_create_qpair+0x32a/0x5d0 [qla2xxx] [ 12.338417] CPU: 7 PID: 1020 Comm: systemd-udevd Tainted: G I --------- --- 5.14.0-29.el9.x86_64 #1 [ 12.348827] Hardware name: Dell Inc. PowerEdge R610/0F0XJ6, BIOS 6.6.0 05/22/2018 [ 12.356356] Call Trace: [ 12.358821] dump_stack_lvl+0x34/0x44 [ 12.362514] check_preemption_disabled+0xd9/0xe0 [ 12.367164] qla2xxx_create_qpair+0x32a/0x5d0 [qla2xxx] [ 12.372481] qla2x00_probe_one+0xa3a/0x1b80 [qla2xxx] [ 12.377617] ? _raw_spin_lock_irqsave+0x19/0x40 [ 12.384284] local_pci_probe+0x42/0x80 [ 12.390162] ? pci_match_device+0xd7/0x110 [ 12.396366] pci_device_probe+0xfd/0x1b0 [ 12.402372] really_probe+0x1e7/0x3e0 [ 12.408114] __driver_probe_device+0xfe/0x180 [ 12.414544] driver_probe_device+0x1e/0x90 [ 12.420685] __driver_attach+0xc0/0x1c0 [ 12.426536] ? __device_attach_driver+0xe0/0xe0 [ 12.433061] ? __device_attach_driver+0xe0/0xe0 [ 12.439538] bus_for_each_dev+0x78/0xc0 [ 12.445294] bus_add_driver+0x12b/0x1e0 [ 12.451021] driver_register+0x8f/0xe0 [ 12.456631] ? 0xffffffffc07bc000 [ 12.461773] qla2x00_module_init+0x1be/0x229 [qla2xxx] [ 12.468776] do_one_initcall+0x44/0x200 [ 12.474401] ? load_module+0xad3/0xba0 [ 12.479908] ? kmem_cache_alloc_trace+0x45/0x410 [ 12.486268] do_init_module+0x5c/0x280 [ 12.491730] __do_sys_init_module+0x12e/0x1b0 [ 12.497785] do_syscall_64+0x3b/0x90 [ 12.503029] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 12.509764] RIP: 0033:0x7f554f73ab2e Link: https://lore.kernel.org/r/20220110050218.3958-15-njavali@marvell.com Cc: stable@vger.kernel.org Reviewed-by: Himanshu Madhani Signed-off-by: Saurav Kashyap Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -8037,7 +8037,7 @@ struct qla_qpair *qla2xxx_create_qpair(s qpair->rsp->req = qpair->req; qpair->rsp->qpair = qpair; /* init qpair to this cpu. Will adjust at run time. */ - qla_cpu_update(qpair, smp_processor_id()); + qla_cpu_update(qpair, raw_smp_processor_id()); if (IS_T10_PI_CAPABLE(ha) && ql2xenabledif) { if (ha->fw_attributes & BIT_4)