Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29679411rwd; Wed, 5 Jul 2023 16:01:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFThr0MxBbZ6i8mbyegwz12R5efU0cWlokE+PrUN2qe+EkbdSDrk5ONery1vALhWE+2Nkej X-Received: by 2002:a05:6a20:b284:b0:12e:5d45:82e0 with SMTP id ei4-20020a056a20b28400b0012e5d4582e0mr219918pzb.29.1688598074085; Wed, 05 Jul 2023 16:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688598074; cv=none; d=google.com; s=arc-20160816; b=ZFzzywXVq66a02VMU2W+pRAOV6wOqyHmDq2RlXb4V6F55qIc2A6xz3mK3Nm4z4M/xl WnOxjxL6TyItYspoAX608n7dLDtKp8gJLTRl9vpzxXhoiy3WWIq+QAPxcnBZgwukiWAR 2Rq3lj57bBHHJUqm3H+qSxpfQAJ1PWjbGEwqR+iL54PVYmDcD8OO9IsdiHwIBvMgfFRe ooVA1FsxRcbWSvHZbuosUyH/Mr/4432vuOehHYlG34UzDCRsRtmLk0MDw1enFKfsSzwV VBR5z7vED50qUkgoKFWhPXzmFMCdd/FIDsk7SGj/nfcn0JIUUouYGUswbU9GUnMK9uGG YKGQ== 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=whnA/OVznVWcFaFcIYC0diM7lv6z3lBMMqb7ePGz5mQ=; fh=klKTxR5mfo2FuHAFg6GOtTcLDLX8yxEr/jFKESZVrG8=; b=SLzxnFP6nsGrKO5UA6v7u8I9BMroTIikP3o8lLr6f4EfRAM3v2MPseMLaMjHkJQh96 ANzmTobHg0755gbzYfpOweB7XTUN0zbiv+kVma1RrtFtjZoA64h9kyzaEy/rT9kvuYsU EtNnWKh/o2bR+ods1ZvcVMJGcJwgwMcuSgcpjtyu76720av0qgDG/8Tsjv6eLVtOS7x9 nO6Aa/qsvVZ3gxQuJtfx97X7hmDWzkCuqt3XflEf9UBymyDvu0q9WylBM0LYxEKhTQu/ /XB0WsUv01egNlUlIQVgEsgR3B5PjTWJViq+EERLvPLBozQL1WCf45/4luRht3ARRvpJ nf9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="SBYa5ul/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ld3-20020a170902fac300b001b3415a07dcsi53185plb.91.2023.07.05.16.01.00; Wed, 05 Jul 2023 16:01:14 -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=@infradead.org header.s=casper.20170209 header.b="SBYa5ul/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbjGEWmS (ORCPT + 99 others); Wed, 5 Jul 2023 18:42:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbjGEWmR (ORCPT ); Wed, 5 Jul 2023 18:42:17 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 882C01BCA; Wed, 5 Jul 2023 15:41:43 -0700 (PDT) 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=whnA/OVznVWcFaFcIYC0diM7lv6z3lBMMqb7ePGz5mQ=; b=SBYa5ul/YojgJayNbL5nIgSWxk aLsZEyN7JhOnzgsI0qiXJJ61u9NAVnSCtpm09RRNT//C5ozJlP3kromq72aejTynICWnQUsbi+v/b ZA9YiSJLZgUq4Gu8DYTHyUusLqa9T1u/To45CTISHPjsHU5ysYVBXMm+ZGPNXkLaL5RK8E/bPn62a Qcf5CMYS8dUJG+gJKXAcUhALxllaS/c2ve73SDpmle6i7hkoighnAlWn1Alj61QPXL7RC+QGGwHQo hxtNuq5H+tdpiWAay00KrOhF6OzyqmIvC+b2RO/WW1PIagkMuIXHVbAzOLW5mxM7r5211VHXGP66G ncygjUFg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qHBBI-00AUxf-Rx; Wed, 05 Jul 2023 22:41:04 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 61B6E3002B1; Thu, 6 Jul 2023 00:41:04 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 54454284C9973; Thu, 6 Jul 2023 00:41:04 +0200 (CEST) Date: Thu, 6 Jul 2023 00:41:04 +0200 From: Peter Zijlstra To: Frederic Weisbecker 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: <20230705224104.GE2813335@hirez.programming.kicks-ass.net> References: <20230705181256.3539027-1-vschneid@redhat.com> <20230705181256.3539027-12-vschneid@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: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 :-)