Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp459114rdb; Thu, 15 Feb 2024 05:41:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVR13BQuGbUzWWFmGDVjKOHpiCwxFC52QwKrRl+idUej0UMwZZUiqVIl/OfaLh1q49QlKMBOMjyI5joNqJksJuRwttuTNV/IV1Dm61awg== X-Google-Smtp-Source: AGHT+IEMG1sHED/KS28gc03fjmh9nlhPhPaszQanM6YoBrufdwpAQbAagp77l5nyv1uVONoWHdfr X-Received: by 2002:a05:6402:1948:b0:561:64e6:b5c with SMTP id f8-20020a056402194800b0056164e60b5cmr5380324edz.7.1708004469492; Thu, 15 Feb 2024 05:41:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708004469; cv=pass; d=google.com; s=arc-20160816; b=IVhQeOfh2xku0C1Okwb1uev4jCc/KoDX1k8UBHBYU4JZ6HmuXybArFq/5zQJbEfn2x 0ScVDm6DDoa4vind4ku87gZBY5q1F9saX7E8cAPd8GV2UYYYP0GRf3PJWJ9DtTRvFCD7 JEwOIU1L4d/o60Ov7sxtjDpSjtKMX/bKXawqHL8bfb+GHkCPUGoQUuVhlwWormO/2zWA /esv05tjFk9mENR2Sn+g5/qGAItV6vQIkTujJ0JqEM0S4+q3ELJA9IS4+2VLWMIrOVLc SOYrYcAqq1ZWPpEm56O3k4StAry4IrvlqazEwxJl+phzv1h1hvoBoghQViAQYtkMudrW VfUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=bkr+xueP4b0KmB4knxFyYBugl4UyONHoxgCWkkPTCIM=; fh=LNJjQREJBgg7blH+ee1H1KuouJM3siak8eX03aad5dI=; b=NHOrOyhhwxkf5/nI65BDxumOspC8mS2omzDaYhpA/h5d8FfmPfYvVGaIOFq7Ub82+J FkuSBIKGdbHD+GJ0/iaW+UO4eC8m5AmItwsmP89hwE+W5WkoMjZo4EzUt0yUFM9lqzNN qNoFoax/nN6vy7yOet3n2llMXGncafRVhwMxB1g0+31K80vGd40FNhuAb0JqM3izYYf1 /05Tb7nnjzMe3fFSz444HIv8+MkXGWpEFziaRSiGi0wX1bqGd9upGMqhDKx6i23xbLcp EUIhRWZyP5r70Q0DG51pYuC8/IleyLoA5OG0X99TybhpANveDDeoOcSYZgQdHAUtINn0 UI4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hYSiuNa0; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-67000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b9-20020a05640202c900b00561401f2877si671824edx.34.2024.02.15.05.41.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 05:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hYSiuNa0; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-67000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3C4551F219AF for ; Thu, 15 Feb 2024 13:41:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57D91131733; Thu, 15 Feb 2024 13:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hYSiuNa0" Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 056F312BE88; Thu, 15 Feb 2024 13:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708004458; cv=none; b=EvMxmNObpYkgbiUTlHdWTvuNE0f87Jnuywa535wUrdh+4Ux8IqyPKo//qOn2sVbOQI/nimnRC7H7LC3gZ3qHaby5JUxbTMkGzR5nxjYR262ujKulw3CEUtfQU6mFDcwQWkE97Bs5MBFM0MnXnOwJCFJvv3I8j3WyYL3I+e4tCak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708004458; c=relaxed/simple; bh=plKKOsjcVDNC3BZf+gPr1nfSPGe/mslre9dzGeiehf8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dtOr6Xs35iU1IpwRn03Yi0X+4mg9z+Xo4XajeEX7u66M5sp3OqCrcIjbwnYSn9y4SGhT17GQPtrNeVMeT3EJYNmQ4YDMbWb0pPiLqgyaqWLG+d6Mg8DIeI1neQhdBKz6o8W2Vd5FDOV1O8igyNhnkoAn88TYEhSPIh0y0FVKZBc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hYSiuNa0; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6e1040455b5so576056b3a.0; Thu, 15 Feb 2024 05:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708004456; x=1708609256; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=bkr+xueP4b0KmB4knxFyYBugl4UyONHoxgCWkkPTCIM=; b=hYSiuNa0e3qaHtWI55nueLo5KYVPCYQ/lKfuihWMowPX5z4y9n6UcABr334Xk4dzmb 9Y0a8Xhox5zXYOwqITm222VtdfzfWgxGiJayEJEXgRquAVrC5XxrhW+/j2ORpsGZnXFa DCJOmMIUerrRWht7eL2wDEOzMZShef1bAb1pasHy6Qc5f/YRGF26atHVWmYosqNebWAM CXshQ+Gtr/oLYQ+unaUWGTlbF3fPrTk2zZqZ9+sM/BbrzQhmTsKCZK0/21B3e86HtlWQ N2HhVFPzNwQatwbMRvXg2m/5rKYyuPs4M3QBy4T22p9xdgCwqLBtRO45TGP/exoSh0N+ 7JjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708004456; x=1708609256; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bkr+xueP4b0KmB4knxFyYBugl4UyONHoxgCWkkPTCIM=; b=XQUt96TbN3Q1l3HkpqoXucsEDYuNL+UyvGPsI9kGtTFtnJPe4FmuLKpEfp9LmU622a paCglm7cnm7tHOHbNcnfRs0nl0n3E3ZmsQuMLswGu4+sKGZwvWrAVpStM9/E+EzNIfqP y2BX27FLNoyzB9Q64hEjeuH8rBpOG2fibsIbjjNAm4BWAdJ6Ug7F3W6lwIZjz2a+ce7P n2ok9XnVYBLqKU6XYx9SraIDqpgj33CBzwAp+CLOPXINQx2kiwXabCm2Pf+x+/70rmkt Rf1txlwJlAvYJTCBYHkWag7AfHlszMw+YunskdbGrAPlTKb4Z4sIVOcAXrGEIoGnqT3l noSA== X-Forwarded-Encrypted: i=1; AJvYcCWbBvWOfU1qVzkkl2oDqqLYrQBeZVseSFwaKDhL+mTVVYnBImC9d4LTRzk341r0qx3n4ljJWB6TP7mLYvFcUraETeC99qQcktXyMw== X-Gm-Message-State: AOJu0Yw0rvjGqZcum5EuFeGEZl+LPUWMqiyGvd573Zg8Ier/BgkkYD4q aFGpimfRD3oWsiVLZG9CYY6YnokHGv2On3nxaxZqUKaW8/Yj5Hi2 X-Received: by 2002:a05:6a21:626:b0:19e:ac67:13a9 with SMTP id ll38-20020a056a21062600b0019eac6713a9mr1797607pzb.19.1708004456148; Thu, 15 Feb 2024 05:40:56 -0800 (PST) Received: from localhost ([2620:10d:c090:400::4:fe87]) by smtp.gmail.com with ESMTPSA id jb19-20020a170903259300b001db43f3629dsm1267283plb.140.2024.02.15.05.40.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 05:40:55 -0800 (PST) Sender: Tejun Heo Date: Thu, 15 Feb 2024 03:40:54 -1000 From: Tejun Heo To: Naresh Kamboju Cc: open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org, Linux Regressions , Lai Jiangshan , Anders Roxell Subject: Re: next-20240215: workqueue.c: undefined reference to `irq_work_queue_on' Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hello, Can you see whether the following patch fixes the build? diff --git a/init/Kconfig b/init/Kconfig index 8df18f3a9748..41be05a8ba5e 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -107,6 +107,8 @@ config CONSTRUCTORS config IRQ_WORK bool + depends on SMP + default y config BUILDTIME_TABLE_SORT bool diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 04e35dbe6799..6ae441e13804 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -1209,6 +1209,20 @@ static struct irq_work *bh_pool_irq_work(struct worker_pool *pool) return &per_cpu(bh_pool_irq_works, pool->cpu)[high]; } +static void kick_bh_pool(struct worker_pool *pool) +{ +#ifdef CONFIG_SMP + if (unlikely(pool->cpu != smp_processor_id())) { + irq_work_queue_on(bh_pool_irq_work(pool), pool->cpu); + return; + } +#endif + if (pool->attrs->nice == HIGHPRI_NICE_LEVEL) + raise_softirq_irqoff(HI_SOFTIRQ); + else + raise_softirq_irqoff(TASKLET_SOFTIRQ); +} + /** * kick_pool - wake up an idle worker if necessary * @pool: pool to kick @@ -1227,15 +1241,7 @@ static bool kick_pool(struct worker_pool *pool) return false; if (pool->flags & POOL_BH) { - if (likely(pool->cpu == smp_processor_id())) { - if (pool->attrs->nice == HIGHPRI_NICE_LEVEL) - raise_softirq_irqoff(HI_SOFTIRQ); - else - raise_softirq_irqoff(TASKLET_SOFTIRQ); - } else { - irq_work_queue_on(bh_pool_irq_work(pool), pool->cpu); - } - + kick_bh_pool(pool); return true; }