Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1572242pxb; Thu, 28 Jan 2021 22:24:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9neKVOMK4bilEn6gyDug65jZHektWBpMP2zuIgotH0O1gNrE4BpY06EZeRfIBGdqMZSWq X-Received: by 2002:a05:6402:c92:: with SMTP id cm18mr3516051edb.367.1611901446838; Thu, 28 Jan 2021 22:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611901446; cv=none; d=google.com; s=arc-20160816; b=wrq0kdeO/jfs6xJiO5JK6q/i7KB2HE9oHgE7T+eCQ6FZNrz69mj+63Vx/4PxH89vfn y1yEpvCJ/C+0heyOvh65lJO+TTz2PIqMYOWxt4Oy8WHGv6GGkbOa9MnWRBYY2TMjYv/F OhAFGDC0kALdAwNzv/jndH/hVL4m95nSSm/8H1IA/LbqUopi8xC8TNpvdl4eJBbD2S81 2e82wL9F2FnzmhhOOWyBURRxNGG9YXrhNwPKV7MRCYELy/UPDGp8UGjDWPm2K2q+Ix4p wJo/VFFX7eShsq2uCjgXYVqdSuREuPw0kQfIYZBGz0mqsTmuSj5bGln0NK2CarEl3FPw 6irQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=GDHFlExd4yvNz/1+o+BMfMOTjoMotHOo13IcgMMPIa8=; b=050U5izjHT/oUFxQnMB4luIJ2FJLspbs0TbnLvxfWLCQ9iM7qX7N9wOKjg1IkEVvBk lSZTTSG4BKu90yO5DHMWfRdNX6M3eqDJMiH/1uEb0QhyPuEVxkRqbkwRSq8tC4Vnb56Y uZ8mssVqJIc2dIWsAth3qe8z5mRL2iSTq9qQE35vC57mitd2HjfsvZRzlQYVLVvJJNAO dl3Mt7IZSKp1mSU+/gr7lUAsUHSRrKwhFZwkld5HkN0kCfrNZShwQjY6/0lVOK7LR2bV uo0MNHpByifJUZ+tIzKaplAISCJYB8sI3U0AD1oRZ7ABaqQI2g8nZmRKPTvz7XI1jXi8 /nBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf2si4318932ejb.154.2021.01.28.22.23.42; Thu, 28 Jan 2021 22:24:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbhA2GWQ (ORCPT + 99 others); Fri, 29 Jan 2021 01:22:16 -0500 Received: from mga05.intel.com ([192.55.52.43]:16617 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231865AbhA2GWP (ORCPT ); Fri, 29 Jan 2021 01:22:15 -0500 IronPort-SDR: Y9xzKSUZy/2YtgeHANJhrVWILabBAq0jKQDZ3hOB3G6n6+WLXCv24e2gVXGawmJqDNXQkfF8ZB PwiJScUVwAgQ== X-IronPort-AV: E=McAfee;i="6000,8403,9878"; a="265205820" X-IronPort-AV: E=Sophos;i="5.79,384,1602572400"; d="scan'208";a="265205820" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2021 22:20:26 -0800 IronPort-SDR: PTvcyZV7VwjFvWOZ32vekl7hEPMTxba1TDt8Ys39mWCvzz6H9sqmFpByvqUSBqaBvsxMhxeBX3 aOZ0fFIrHsMw== X-IronPort-AV: E=Sophos;i="5.79,384,1602572400"; d="scan'208";a="364181083" Received: from xingzhen-mobl.ccr.corp.intel.com (HELO [10.238.6.97]) ([10.238.6.97]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2021 22:20:23 -0800 Subject: Re: [workqueue] d5bff968ea: WARNING:at_kernel/workqueue.c:#process_one_work To: paulmck@kernel.org, Hillf Danton Cc: Oliver Sang , Peter Zijlstra , Lai Jiangshan , LKML , lkp@intel.com, lkp References: <20210126073925.1962-1-hdanton@sina.com> <20210127092128.2299-1-hdanton@sina.com> <20210128090905.1596-1-hdanton@sina.com> <20210128180821.GA24510@paulmck-ThinkPad-P72> From: Xing Zhengjun Message-ID: Date: Fri, 29 Jan 2021 14:20:18 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210128180821.GA24510@paulmck-ThinkPad-P72> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/29/2021 2:08 AM, Paul E. McKenney wrote: > On Thu, Jan 28, 2021 at 05:09:05PM +0800, Hillf Danton wrote: >> On Thu, 28 Jan 2021 15:52:40 +0800 Xing Zhengjun wrote: > > [ . . . ] > >>> I test the patch 4 times, no warning appears in the kernel log. >> >> Thank you so much Zhengjun! >> >> And the overall brain dump so far is >> >> 1/ before and after d5bff968ea, changing the allowed ptr at online time >> is the key to quiesce the warning in process_one_work(). >> >> 2/ marking pcpu before changing aptr in rebind_workers() is mandatory in >> regards to cutting the risk of triggering such a warning. >> >> 3/ we canot maintain such an order without quiescing the 508 warning for >> kworkers. And we have a couple of excuses to do so, a) the number of >> allowed CPUs is no longer checked in is_per_cpu_kthread() instead of >> PF_NO_SETAFFINITY, b) there is always a followup act to change the aptr >> in order to fix the number of aCPUs. >> >> 4/ same order is maintained also at rescue time. > > Just out of curiosity, does this test still fail on current mainline? > > Thanx, Paul > I test mainline v5.11-rc5, it has no issue. The issue is only for d5bff968ea which is in https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev.2021.01.11b. -- Zhengjun Xing