Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2635732iog; Mon, 20 Jun 2022 01:05:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7Qe8FWJBm4idib/9s0GeXdrMB7oRsa60QyBJfDlmJ3xAjZ8vP022uDP7lhWJD+tKMJbOU X-Received: by 2002:a05:6a00:2490:b0:51b:f709:ebbc with SMTP id c16-20020a056a00249000b0051bf709ebbcmr22977595pfv.43.1655712312374; Mon, 20 Jun 2022 01:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655712312; cv=none; d=google.com; s=arc-20160816; b=MTlAI1OVWG/+TgW0Ns6hMY+TzG3L2mR60Axeh23G6tejXesgc/dadABiopEA2K97qz 1aTB5N2+f6I0nZG6MP7+15Gmxt7xbu80EzDuWfZSCVuDO6ELggxZWAWAGw8fa0d8UWHu mmR4NFx7mK+LL2hxAVp7Ner20Dzm5v7L9yPsn+lhzmRnQ+MapP0tYQpIBfAMcwR2eGp3 kmpeQ5wrWC8Grdfvvt4+Jbz3j3uNYpA+EqRbzKRapYGWv5Up/Uj8aohmb0bb/TdEWPrA pXvixiKOva76y6vGiOb1vtAH7vgEv1JlN0xjCn+CZBHrj2sdCop06tJlB1Pq9YHQDBDj EeQg== 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=GknsFK+VQvbvBoXcSN4fBAb3XQTkYXKw7ZS5wOPD6ew=; b=PYXuSrKqevyTzZ0+nRlZ/Kt+XadCHuVgoHT6Pqp1KpKicOb4bC5C0+yFhUR/fyU6Ah 38r8XDIgWEX4TcLeecaqBDJfjGvBJfZxQHsoAFG5nfE58givJ79EPnZaeyx9ptHmvaOj kZdekgBnCTYV5MUvsIRh24QwBDH8DZ97t3p86CFeahixBvzJG8fBssC+HY4ewH4GFtah 3Pgz7cjYv7cAwTOyEogXFECFk4sKa1SMAh66uYTH3Uh5GzVJN/s1+xH2VsaeXVtfJs5C KEGvmHRzdmPNSeYyXXLoswm6/bjnPKgY8EnNOT9ptLvPAABW7KbqbcFjX3Kjo2QfTuMD h2/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=BETG7RV9; 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 l15-20020a170903244f00b001637d6bac7csi16667952pls.93.2022.06.20.01.04.56; Mon, 20 Jun 2022 01:05:12 -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=desiato.20200630 header.b=BETG7RV9; 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 S239314AbiFTHZb (ORCPT + 99 others); Mon, 20 Jun 2022 03:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239183AbiFTHZ3 (ORCPT ); Mon, 20 Jun 2022 03:25:29 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A9FE0B5 for ; Mon, 20 Jun 2022 00:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=GknsFK+VQvbvBoXcSN4fBAb3XQTkYXKw7ZS5wOPD6ew=; b=BETG7RV9b4LWu9gZuGI1ZO8E0i 0CglwQHR6dZ313fPSJUDDU6J1cJ2hFtmg1aMKKXY/6toN0mu8nUq+3m4L0vHG4aI2bYsc96eWachA 1sSR+AePDnP5ACk9O7hPXRCeUjiSjuNhjjyjig/yf/LIEBOP1L1sh1vgSSxA2axMk8+g++x94VLpi czVg+EZU5RH7EtsxRZVi+NiLqDMW6RRZxKI0hK/0wRpbIq5O99x1NBg04iXVR5gZEyMykXecF/zPD H5CeV4kAQt0g+6lXfDha4mCChbVSFdQfMbOoMJtRMvDwFBpbAhhXwHSnetpLc0sFiesNDO+9+ljhT ZQEwLfMw==; Received: from dhcp-077-249-017-003.chello.nl ([77.249.17.3] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3BmW-009PbF-MT; Mon, 20 Jun 2022 07:25:09 +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) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B3BBE300268; Mon, 20 Jun 2022 09:25:06 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8E6F5299D22F0; Mon, 20 Jun 2022 09:25:06 +0200 (CEST) Date: Mon, 20 Jun 2022 09:25:06 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Eric Dumazet , Waiman Long , Shakeel Butt , Eric Dumazet , linux-kernel , Ingo Molnar , Boqun Feng , Will Deacon , Roman Penyaev Subject: Re: [PATCH] locking/rwlocks: do not starve writers Message-ID: References: <7499dd05-30d1-669c-66b4-5cb06452b476@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 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 Fri, Jun 17, 2022 at 02:48:08PM -0500, Linus Torvalds wrote: > I'd love to see the tasklist_lock be converted to RCU too. But that > locks predates RCU (and probably 99% of all kernel code), and it's > messy, so nobody sane has ever willingly tried to do that afaik. Thomas actually tried a few years ago (for RT, which also hates on RW type locks). At the time he converted most users to RCU (since the tasklist itself is also RCU protected), but there's a bunch of users (more than you'd like) that really need to be exclusive vs fork. IIRC the most prominent problem is that RCU iteration can miss incoming tasks and they'll miss getting updated. But like said, it's a few years ago so I'm a bit hazy on the details.