Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30266968rwd; Thu, 6 Jul 2023 03:28:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4Rtd/Iw0e+rz8kNGva2c6OYN4rMUDHwPrSDNF/K0G3V8hdxf0iF6KeCKJmafYd56R3uF+ X-Received: by 2002:a05:6358:340b:b0:134:c4dc:2c4e with SMTP id h11-20020a056358340b00b00134c4dc2c4emr301324rwd.23.1688639333834; Thu, 06 Jul 2023 03:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688639333; cv=none; d=google.com; s=arc-20160816; b=BFhFuGRmwSGqQCNYoDaDuQ4FXOpMZkjMj8MnXSLBVcFu5A49mpBELeSHCLsgiZj/Ge myb8EglbZdIMUoRhCpnI/Trye/x6hxd6GLJ4iDOl+kJVKG0Xe7XWjE2lSA8i9r8XkBAg iBz0zTRLeysv+8NEWV0Cc2bVxYAq0ZUbKHMzaZk5PdCGxbqizACF7ZrmRVqZ86g7mSrF UWVYmq1GpdiAP+ee62g6WuzFGB6s39eEsBAf2mx5LeQdJTF9I8Gm/I+2qC1sUP14C0MY BbxrM0CoLmWzOZCxfPb0kJhinokHKbf0zu9dM8Chk5Fp8014MKewI5kDHQxdywUWDg/p PuFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NlXEKDU46ELFfVtuUqU24fi14k6HmrxbRx6vLBe71xM=; fh=7souVmjZmcKDkrijKWaIdlKCQYJoelz6szUEPlMIYnY=; b=ssuTofWojrBhZuC7G5yABs0MjuOK3p3JidVko6KTRv40Hgijqz/yN5mk/vyOSMJUwt WtC7ZT1mfsXg6INnSBcuXmPh0r4KYO45a8FKtssGivdVbalxyqyuWm6qGbF2T1uNik2l XkqYcKzlTWxnLwsrSJUAd0x6vZnzKM73NGXYLqi9KWUrFko3YCrbC8ThjycdAyW58VLd 4DC00gR0Sqf8xQt/NL2DC8nRTCVVGxkJ5vImqfF0E/5IVr3lKhtYMDvqIhKO4RmcZuoE IUIMO3tbaQVpz+nrO2wh5L3PErw3mY7bt4rDi1PWt7dCU8WX6Aj3UftS6HyeYG0KuD7X bneg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K7oSQpH7; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a634b4e000000b0055b57fc53a6si1171906pgl.540.2023.07.06.03.28.41; Thu, 06 Jul 2023 03:28:53 -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=@kernel.org header.s=k20201202 header.b=K7oSQpH7; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232297AbjGFJyI (ORCPT + 99 others); Thu, 6 Jul 2023 05:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232252AbjGFJyE (ORCPT ); Thu, 6 Jul 2023 05:54:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F388C1BE8; Thu, 6 Jul 2023 02:54:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (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 dfw.source.kernel.org (Postfix) with ESMTPS id 514BD618D7; Thu, 6 Jul 2023 09:54:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 277FEC433C9; Thu, 6 Jul 2023 09:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688637239; bh=Vme8i+8ZjqtCno6CMa53lKwCLxQgLuTEKq8y8x78RyY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K7oSQpH7enTD5ZMIXGersjb+eY+WfjWQlx23EVs5zrVRdsGfuA5hOU8OQRDadpMGR zEqbLacQL8xgg//uANI/Pl6VhMj39f/bjNmRu4GTXr1mkVZtqlain2RaoXt9HqZtnk 4zCANtybIAn2X5KQX+bN8AO5b0JId3ArIfsZEBOLhQzqDSV/jPXP+Q7n9qBOGO6UX4 hLyzSN9KUXNMpTSWY8PNvQGKLQtLuIAtukPmR47WXlJVgBm+hJ3FC/3YNqgwO8Nbgv 9LfraiT2DNi6NY9hrCpoV8srdK/tTXx63FZCy1rf9Ah0hXz9SmzXYZfwAmnwE1R9SH 6zRSCUyYxRkrQ== Date: Thu, 6 Jul 2023 11:53:56 +0200 From: Frederic Weisbecker To: Peter Zijlstra Cc: Valentin Schneider , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, x86@kernel.org, Nicolas Saenz Julienne , Steven Rostedt , Masami Hiramatsu , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , Andy Lutomirski , "Paul E. McKenney" , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , Lorenzo Stoakes , Josh Poimboeuf , Kees Cook , Sami Tolvanen , Ard Biesheuvel , Nicholas Piggin , Juerg Haefliger , Nicolas Saenz Julienne , "Kirill A. Shutemov" , Nadav Amit , Dan Carpenter , Chuang Wang , Yang Jihong , Petr Mladek , "Jason A. Donenfeld" , Song Liu , Julian Pidancet , Tom Lendacky , Dionna Glaze , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Juri Lelli , Daniel Bristot de Oliveira , Marcelo Tosatti , Yair Podemsky Subject: Re: [RFC PATCH 11/14] context-tracking: Introduce work deferral infrastructure Message-ID: References: <20230705181256.3539027-1-vschneid@redhat.com> <20230705181256.3539027-12-vschneid@redhat.com> <20230705224104.GE2813335@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705224104.GE2813335@hirez.programming.kicks-ass.net> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Thu, Jul 06, 2023 at 12:41:04AM +0200, Peter Zijlstra wrote: > On Thu, Jul 06, 2023 at 12:23:57AM +0200, Frederic Weisbecker wrote: > > If this is just about a dozen, can we stuff them in the state like in the > > following? We can potentially add more of them especially on 64 bits we could > > afford 30 different works, this is just shrinking the RCU extended quiescent > > state counter space. Worst case that can happen is that RCU misses 65535 > > idle/user <-> kernel transitions and delays a grace period... > > We can make all this a 64bit only feature and use atomic_long_t :-) Works for me :)