Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp786131pxb; Tue, 5 Apr 2022 23:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm8bGst6tMM9Yvf8/3lS3OzXRU7MRbJJdsMk62c0iTLDZbPy9rVv3p0D/1o6JiIb2zjObr X-Received: by 2002:a63:1c5c:0:b0:398:f69b:1996 with SMTP id c28-20020a631c5c000000b00398f69b1996mr5867237pgm.370.1649225786969; Tue, 05 Apr 2022 23:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649225786; cv=none; d=google.com; s=arc-20160816; b=xereXK4rHbGZ7lkklTupmun93+NlPMuIP3Zg+pIe8uUl23kLTMN2tIhHlmC4NLGLeI 7b6L6iKLt1WOeIDlYEqcJRkAxA+MqBsyGuRzFbV1a61GukSL41OTOIm9KDvIrFl1+hNF JEMzuCbQh7KpE3pmNtT1aHZE3p5FaZxiDtCglVzyWYcps4ljNLGmerNeDJGvyBuV5OTj qERupfKYKj2XT4uQA9CV1Sx4ao8rp8AqoudKoEtqtU2M7mX8JuS+SPl5Gk9h04a6Xs0I QVB2ApNwgszcX0xwES8ad/lLjpnD0WEp2L1IYrYI97TTXLhsMtJgm7JwIjy9UFeWFWOh 9iag== 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=dK1c7FZGKveqOwYEnBL9Z7VpLVklWhykYKb5NT9fOEY=; b=c7AhfoYq6wQ8ZnZ9n7wtoPvm07NTnXA/ZxZUaUjjZ6bPJHW42ODoooqeGFJQwO8GfB GK838AyJwxOfjU2+He774n6yDkv1vqcCZMlMDpYgutUJBfSE01UwiykviaS9Ooty1wX1 EC3xlxLBP7WKhYV+jZRmH/I0BXJrs4zrOz4K61bw4IEH36KuNDzCkh4MvCf0OhD8A0Q1 SMk8PQHTtYG3Tbb3bM4T03BzxjgcznkcNW8b4q3wwyJChqimI/IIH09G5GUHTrUqPWD9 VMSGOjm16K6t+iliAZBU7K0pnIEynhMlkNFOIB2V4+bfbuEdB8qocpgjsO8oconk/VAp csXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gEIqaWLT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f6-20020a170902ce8600b00153b2d1653fsi16451103plg.327.2022.04.05.23.16.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 23:16:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gEIqaWLT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A8EB181D86; Tue, 5 Apr 2022 23:08:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1583707AbiDEX40 (ORCPT + 99 others); Tue, 5 Apr 2022 19:56:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353420AbiDEKGL (ORCPT ); Tue, 5 Apr 2022 06:06:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E8E0BF948; Tue, 5 Apr 2022 02:55:02 -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 AED9961676; Tue, 5 Apr 2022 09:55:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAD5DC385A3; Tue, 5 Apr 2022 09:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152501; bh=odIuCAMGXhnwd3yUgdCLGF/DVsHgEPNE7cBDyU7abxM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gEIqaWLTYh8yCel1XiMwci0fEl9Ct2wtvqrwskoXEvXG8MMJdrkmk/VFgJeiCWAeS JpJ3vHA/NbIkfMn64Ww7tA4Ygmi7T32WQ0AwlAHyjDcnvJSx07B/NpqUL2uoyHKXkP yP+TN2rOXZDmV4rNP+z06xfUIL31u2vnEpJ5UmQU= 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 5.15 800/913] scsi: qla2xxx: Suppress a kernel complaint in qla_create_qpair() Date: Tue, 5 Apr 2022 09:31:02 +0200 Message-Id: <20220405070403.812536725@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 @@ -9393,7 +9393,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)