Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp421931lqg; Thu, 11 Apr 2024 07:07:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXg0rsILAe23I4UOcQI2Bo8qlmFK5pHJBSizasaRAjh8g/sDT/dIhZ+ZpOl78ucunHygTC7Y26u/ZfhkOTJNCdWvIn6VS/26bPVl2/OzQ== X-Google-Smtp-Source: AGHT+IH2PpZfFXMFygABoN98NmQcTpszVcVn/DzIFGo6w364EeIJXYfZChXNGnW/pZNVlX8NdQmf X-Received: by 2002:a05:6a00:218f:b0:6ec:fdfe:9bde with SMTP id h15-20020a056a00218f00b006ecfdfe9bdemr6411529pfi.25.1712844448092; Thu, 11 Apr 2024 07:07:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712844448; cv=pass; d=google.com; s=arc-20160816; b=exinlsO2zyHp87oSMUoWtdEZsHLIskMEoBt4E7WfgzBDI6b4ChfER/ySAUP5fkdlNz hLvwk0iaG0HriwiIepDYDxFcdkiqC5oLkSOS7g30S4PoUMWxDR1L03v3Ravijy6HqAkw FSkjlOkTznktPQFNRnWec4rCU8iwuSriA4oC7buz18JmFEw8YzVllkHa0T6HDLBE0NWm iF8VJDmY0p3To6K5j5pc32xkQ9qoSldXWkVV3C3vZTCGEiSUcBbvqNsXNdwrMds/dOtS VTwhSJ4kIxT5tYwkrPtbKkjDMIiHnwgdC/VHDbFSm9CBMGXcyl9IDUh1TtrLRq7viN0E VVVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=94SyIWf/l9sBuxilNW3hNkOFqAXyJGS5kVqeXmxJOr8=; fh=rQ/6k4LgNccKjTNwV9AxD+IfrfNw5sOQqpX+smAwCFQ=; b=qS9sXoAJvG24+exYK7TALYULMYvn0yUQzatpyjzLtkWmod0FDJkIt+vwgKH3PZuweQ XHP87FrXDrqzAQQpiFs1O7lCxP0DkbWBIAUXWaetgQseq3rRrY9YWTEiTdmitJpCsony mkTIj5ofICyhZBavKF9Dz2PCMXZWoJ6m4FTMx34fIomfykv0N0BfEYsKC7I8/ApPmudT RzvkIHeAEx/V0EQixyUuvfn+vvV6c/8t/hu2LbWPKdbxlirEm8sJKoubYbSUwt8tqTFY kwZeyHrrncgWtCv5h3WlxVc1c6Ztgd3SZhIfVEmJvj3Nw52m7zhJOrsRmKSd6a9T8Zix BFjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BP2nN3A6; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-140559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p14-20020a62ab0e000000b006ecdea272c2si1437707pff.189.2024.04.11.07.07.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:07:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BP2nN3A6; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-140559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 28977B29BA9 for ; Thu, 11 Apr 2024 13:48:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10FE31514CA; Thu, 11 Apr 2024 13:43:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BP2nN3A6" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3B8914D707 for ; Thu, 11 Apr 2024 13:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712842993; cv=none; b=D2eQAX9U645MrVivF6GeWvBAF/x2FAsjy+qrw30/kdMRMw0gV5hEW8suY57enUgZSnMhUFrOeo0I6o2cPK3fWugCGhTi3XuX/boWBPzUwkbhsLVkXqc12BSuaOLSYw82+lzgjS5Wc+idf7M9EDTp8U7n6Cp0bjYHyLMNORLV7Ck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712842993; c=relaxed/simple; bh=SJ34ciTQhJ3fV8rma6LmvGWcZJp39aNGbHDDG8dbKWk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IpM259qp45sqtDLXvSQS+BNnLI/U0YvdsPAWjN0STxnUaNQtpcPa0A3F2q5ySk/fW4ZJ/IuKJk/PJ0uuxIEy9ek/KDiV07Yhx9HGgNn/GLd26r3zTrWByrOwZPY30bZ/RcljMqqUL5XFUROfkA2odYANT+qWIglGHzWaM2AMYaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BP2nN3A6; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712842990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=94SyIWf/l9sBuxilNW3hNkOFqAXyJGS5kVqeXmxJOr8=; b=BP2nN3A6PuTw3ISLaPee1wATVJrrQOWpnUN0mxLg9ro0p961vaKXe0dJO8gCvmGqibrclX RzxOHrvaDpgjYu+kpNJWNRW6fn/ZGsCOI+qXsvpwW6elQjsJ3jVUk1ygNWkiRn9HKBYPwW m1rOFBQruwV5XxKvM6lqOy+jGyqZv0o= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-369-CzxCm4qdNOq75Ny8zAF92w-1; Thu, 11 Apr 2024 09:43:07 -0400 X-MC-Unique: CzxCm4qdNOq75Ny8zAF92w-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 251DF188E9C3; Thu, 11 Apr 2024 13:43:07 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.225.235]) by smtp.corp.redhat.com (Postfix) with SMTP id 2D3692026D06; Thu, 11 Apr 2024 13:43:04 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 11 Apr 2024 15:41:41 +0200 (CEST) Date: Thu, 11 Apr 2024 15:41:33 +0200 From: Oleg Nesterov To: Nicholas Piggin Cc: Frederic Weisbecker , Tejun Heo , Leonardo Bras , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Lai Jiangshan , linux-kernel@vger.kernel.org, Junyao Zhao , Chris von Recklinghausen Subject: Re: Nohz_full on boot CPU is broken (was: Re: [PATCH v2 1/1] wq: Avoid using isolated cpus' timers on queue_delayed_work) Message-ID: <20240411134133.GC5494@redhat.com> References: <20240402105847.GA24832@redhat.com> <20240403203814.GD31764@redhat.com> <20240405140449.GB22839@redhat.com> <20240407130914.GA10796@redhat.com> <20240409130727.GC29396@redhat.com> <20240410135518.GA25421@redhat.com> 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: <20240410135518.GA25421@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 On 04/10, Oleg Nesterov wrote: > > Will you agree with the change above or what do you suggest instead as > a simple workaround? OK, let me send the patch. Nicholas, Frederic, please review. > Again, I am not sure I understand, but I too thought that something like > > housekeeping_check(void) > { > for_each_set_bit(type, &housekeeping.flags, HK_TYPE_MAX) { > if (!cpumask_intersects(cpu_online, housekeeping.cpumasks[type])) > panic(); > } > > after bringup_nonboot_cpus(setup_max_cpus). It seems we can make a simpler patch for this. It will (should) fix another problem when maxcpus < first-housekeeping. I'll recheck and try to do this later, lets solve the reported problem first. Oleg.