Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp705728imw; Thu, 14 Jul 2022 09:17:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s6wCFAt+4V6sYPQJYZ2doaiSNcLT+2bymi3c+zvum/YSjZOe7Og6GW3diQ6rF3AsrL1g7o X-Received: by 2002:a17:902:a604:b0:16b:eee6:175 with SMTP id u4-20020a170902a60400b0016beee60175mr9293369plq.36.1657815424342; Thu, 14 Jul 2022 09:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657815424; cv=none; d=google.com; s=arc-20160816; b=dqvX98qRTKWn+Dt7EXDcrcAYyoKarOzU7z+2xXlHvH5N0cS8HXcyZngbxaH+gC8lHr GIZ63lpRy2ynETEDem0bREsL0KguFlADKLCmfaDt71JchKxYGEbziQs7cEA9Td+3Sgr2 pxVIhGRGKgbNyKCRQKG+ZUhJwHdishWu7BBe9l19hQqvTkkAsJT1Wj/ZD/9K/W4xt0QI A/9XVwFJfjny6CtXDQ38TpnyO75ml0fu2b7ELcCNcC4pE6qrxRulj2LgwN3CvVoNpCcX 7IW0P91PyQ1KohSqYb0zHa+2xGaWWBY0WlAugm2EQy0mGzTcXqgAraRhGlO1z0OzVQ31 srgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=1WXbs9Fy2MWdbGl25z8Oh8hLkXQ1fFvb9A9F5gVezUs=; b=GxbOp5uI12oYyiHL0i8ATXiQSizm5SpUKIAVe1KE/7Jsypy9WIsfSAlP1DYoZ6ttqv PDjrNNHtx7+u+3501ZJUpIaZjOEQZ5oFKmTgQC+/srbYIwD+pHYrtGgxCPV8cM84dWFF Hm2Z9CFXcJcAE70gnc82GhyOHwf5cGCsR/CyDbYLBZjFCp6FedPYOr3qwfc8qUtcKByZ akv8rFAEQd0URQAByz/2wNQ5L9QLFo4lOeNl1QQNXwXuPnoQywtqC+2CaWGQP0BnYpPd aBtJI8eOzHEZrmBMHhQjg2Vj4PbHz8MJ1B3gxA1Xf+ZdvOMEuxHN5daLgTCgSKeTqXZx vNPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SpCvPVu6; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020aa78e91000000b0052543a673a0si1233845pfr.93.2022.07.14.09.16.46; Thu, 14 Jul 2022 09:17:04 -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=@gmail.com header.s=20210112 header.b=SpCvPVu6; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240246AbiGNP2t (ORCPT + 99 others); Thu, 14 Jul 2022 11:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240242AbiGNP2s (ORCPT ); Thu, 14 Jul 2022 11:28:48 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33E9F11C2F for ; Thu, 14 Jul 2022 08:28:44 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id e16so2147738pfm.11 for ; Thu, 14 Jul 2022 08:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=1WXbs9Fy2MWdbGl25z8Oh8hLkXQ1fFvb9A9F5gVezUs=; b=SpCvPVu6C2PQfOt5+oRsi+icyQphag5PHEyWURhyDMjx2nGjQyavgX82qKJ6wR+z9N lJmcCb1xqCw17MwHGLiO/8SP6t3esyVR5KN0vGDVGAm/XYOukuPQXF1fn+5FmmejPDKy LAVDeZAcV/wWvkGCAzsaHmi0G5/duan7jR5eJXAt5I/V+kztGE/dd1GyLsMnABnVI7ei HWciE0epXZrqWzI2LB9Frd8TYCE2hwns7igroFHj/tnZwKFyzPXVM/Hwi7MQH1SkV/4P hBVctZ92B3WcfVTLsvKl0MHzsdneS3nlknF7pD70YQKnYnwHP/1FPx3GfXywCAKjeAil KzeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=1WXbs9Fy2MWdbGl25z8Oh8hLkXQ1fFvb9A9F5gVezUs=; b=vZpMBKmxN5IrtQFVGWo7vd10v9pSYmR4/dCzbnxVf9nCF4mNJ9O1aXB4qpLCOixia+ RJK6NiqqcuVkH/MZQ498xoRw+/9VE00KdNtKBuuCBxVp6gBKtPSHzRN0yPG17zExscR5 8nEAkjrpN9iNp/lRnCuoh7wLWvIfaZm5RGzvrdHPFoVf+5EEwr9clvlelUXrmX3IFuT/ 8k6x99Vi7Ya4FYVxxKMyUyOwKuWI52A8Njh8a+giZnyt6aaOkPpEFkxOCbymkgEnKGpj FK7QkUX+/q2YDpAboUpCnCjuGicx0jsbpnx/zKpCD81M/S2LGhRP6/ltoExiUlWQOS61 eyUw== X-Gm-Message-State: AJIora+p4QmXnrKOzvqBpRZxrKAbUwEQXzT5adw9x5+zDxx+sGQ/FhLD h+ZxONPE725IVoviEW3d5v/ihrwL+aunXw== X-Received: by 2002:a65:49c8:0:b0:415:e89d:ea1a with SMTP id t8-20020a6549c8000000b00415e89dea1amr8174459pgs.266.1657812523278; Thu, 14 Jul 2022 08:28:43 -0700 (PDT) Received: from ArchLinux (ec2-13-59-0-164.us-east-2.compute.amazonaws.com. [13.59.0.164]) by smtp.gmail.com with ESMTPSA id f1-20020a170902860100b0016bfa097927sm1584352plo.249.2022.07.14.08.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 08:28:42 -0700 (PDT) References: <20220707090501.55483-1-schspa@gmail.com> <0320c5f9-cbda-1652-1f97-24d1a22fb298@gmail.com> User-agent: mu4e 1.7.5; emacs 28.1 From: Schspa Shi To: Peter Zijlstra Cc: Lai Jiangshan , tj@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] workqueue: Use active mask for new worker when pool is DISASSOCIATED Date: Thu, 14 Jul 2022 23:17:59 +0800 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Peter Zijlstra writes: > On Wed, Jul 13, 2022 at 05:52:58PM +0800, Lai Jiangshan wrote: >> >> >> CC Peter. >> Peter has changed the CPU binding code in workqueue.c. > > [ 1622.829091] WARNING: CPU: 3 PID: 31 at kernel/sched/core.c:7756 sched_cpu_dying+0x74/0x204 > [ 1622.829374] CPU: 3 PID: 31 Comm: migration/3 Tainted: P O 5.10.59-rt52 #2 > ^^^^^^^^^^^^^^^^^^^^^ > > I think we can ignore this as being some ancient kernel. Please try > something recent. I have merged all the workqueue changes from Link: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git/log/kernel/workqueue.c?h=v5.10-rt And this problem can still reproduce. I checked the patch from master tree too, it seems there is no existed patch can fix this problem. Or are there any scheduler, process management related patches that might fix this problem? -- BRs Schspa Shi