From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4589C4361B for ; Tue, 15 Dec 2020 07:51:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6FB2022273 for ; Tue, 15 Dec 2020 07:51:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726487AbgLOHvm (ORCPT ); Tue, 15 Dec 2020 02:51:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbgLOHvm (ORCPT ); Tue, 15 Dec 2020 02:51:42 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7167C06179C for ; Mon, 14 Dec 2020 23:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=T9Z9dav8OBy3YrDwSr+jZfoQ7XL/6/FhY0/QmV8BmJM=; b=n8Nn6u/Zon/79/Y9NT1stOvfZE zo2cHmNiLjfcXJM6zEm+hiC2/drZrO+w+YUF8jXcx041Q2OsuZK4zR1nRaHi5mMYfpIq/TQxdwCbA HLJ2VUl0nTTVOSO0RUQGWFTGfaZtRnMABiAkW2Ux1XE28OOrFMPAH/G0E2dqGFHUS1pAtoZEp89no lX40T85JmtcvQ+knbcWVjb1VlrN+wMkbpYFHibMiovrNg52O+F5tn8DMocAtAJ008qkkuxB0QNnNx KpaX3I+uH1lKMb5IxOeMV1BS4YWADxxQf//0PuUYxOCB1TeCVCoplgFcPQmnL2HdlMVvbwj0MTBaz r0zoIzSg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp56c-00010W-Jz; Tue, 15 Dec 2020 07:50:46 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id F3397302753; Tue, 15 Dec 2020 08:50:44 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C1FF220D21018; Tue, 15 Dec 2020 08:50:44 +0100 (CET) Date: Tue, 15 Dec 2020 08:50:44 +0100 From: Peter Zijlstra To: Lai Jiangshan Cc: LKML , Lai Jiangshan , Hillf Danton , Valentin Schneider , Qian Cai , Vincent Donnefort , Tejun Heo Subject: Re: [PATCH 00/10] workqueue: break affinity initiatively Message-ID: <20201215075044.GZ3040@hirez.programming.kicks-ass.net> References: <20201214155457.3430-1-jiangshanlai@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 15, 2020 at 01:44:53PM +0800, Lai Jiangshan wrote: > I don't know how the scheduler distinguishes all these > different cases under the "new assumption". The special case is: (p->flags & PF_KTHREAD) && p->nr_cpus_allowed == 1