Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp1196775rdb; Wed, 1 Nov 2023 14:23:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXD+fJ5oiG9QcjpLsGzO7NnW8H2JYXs+zy7K0WLE+WcfKQZXfdTSc2GTSuI/VpiJkk6JF/ X-Received: by 2002:a17:90a:678f:b0:280:414d:7a64 with SMTP id o15-20020a17090a678f00b00280414d7a64mr9195670pjj.11.1698873810270; Wed, 01 Nov 2023 14:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698873810; cv=none; d=google.com; s=arc-20160816; b=O+Yc8TuclAUKarqnhbGDGdhWmIYuoa5uziTFb3hWxkqiOeiuWjN0DRWEOo27NVXV/v sUzw7M5GiUBVQngzevY60c6fs4H0JeEtK3Jt7tEfHsB+PKmA2ERMr4byxg5TENTKCABf kpvUmJYfr/LG+nri+Gi9dEp+oD24delDfMdWygDvMDVxNPuVtsqIY6d7UGKegcsCjazd amKJnuqfND4oYTkEOyQlcVd9S+iJZ5TyZdXDTkl/Cp1sfjeHqafb3/m6jZ3eaV5HjlcT ZWqa2VGjAPpJ3Eg7fRXW+SQXFENopfInXQeUXibwsE7+ynV3OgzE1+9LNLR5Pz4AIk24 cwQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=j4Q5+IwvvLZciE9qd6dWmjNxBjBLvEzq9VGta2vDxk4=; fh=6/wK4j2vSDrlMD05tXIaGPUVedfhUhDyb4A2QU17fA4=; b=KCsSmNEdDrMw508QXbmelR6lUFmtwlKbdj/FuvB+G1jg4dHgetoo4Wh/8PKa0SwiYr AzlH2voh3y6q2dmhSHx/vyp7iiSPhSPE7J4Anfc5HwXWGdxRSWQZ2Ex/IZMkdjSfplHp HxztT7WnvDrurz3rTjx/S7lhrhDKsTnkI9GfCeHVhX8rfsN3/sq67IL/y5a/GS5uJ04D NVXjB4x+0BZTchz7WtC8+PJgGJLfnB6kaLpSl2zYA6yxp70vH0SiayosbIKBgQ8UeXg9 9Hm0M4oTbrh52dZEq5I1FyqIE6Qf6GyG/myW23MhBtmKCQJ4ocHWqaI+j60bVLoXu6t0 3kQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DfPUQ2Nc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d64-20020a17090a6f4600b0027ced8e1837si1572040pjk.180.2023.11.01.14.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 14:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DfPUQ2Nc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6CE60819144D; Wed, 1 Nov 2023 14:23:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344705AbjKAVX1 (ORCPT + 99 others); Wed, 1 Nov 2023 17:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232719AbjKAVX0 (ORCPT ); Wed, 1 Nov 2023 17:23:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1088E121 for ; Wed, 1 Nov 2023 14:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698873757; 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=j4Q5+IwvvLZciE9qd6dWmjNxBjBLvEzq9VGta2vDxk4=; b=DfPUQ2NcDCxE0extyQGpHKWkgsxsL95Et5Xe2YVJO2CGvdLxAvCi9nb13xFoBEOurLkW6g FkyYY+Kv7k7N/V/vY8EunmqYGb8u2Q3/1dbEsveHseEKcVMbpZDvEWTSeTO/JqZ9fLfitx 0m0Pme8188J1Kqrkw0dMHn6f+mXWRJE= 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-532-0sCK311YMxGieL5ndhB_xg-1; Wed, 01 Nov 2023 17:22:33 -0400 X-MC-Unique: 0sCK311YMxGieL5ndhB_xg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 55D8C101A529; Wed, 1 Nov 2023 21:22:32 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id E7CC91C060BA; Wed, 1 Nov 2023 21:22:30 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20231101204023.GC32034@redhat.com> References: <20231101204023.GC32034@redhat.com> <20231027095842.GA30868@redhat.com> <1952182.1698853516@warthog.procyon.org.uk> <20231101202302.GB32034@redhat.com> To: Oleg Nesterov Cc: dhowells@redhat.com, Marc Dionne , Alexander Viro , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Chuck Lever , linux-afs@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rxrpc_find_service_conn_rcu: use read_seqbegin() rather than read_seqbegin_or_lock() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1959104.1698873750.1@warthog.procyon.org.uk> Date: Wed, 01 Nov 2023 21:22:30 +0000 Message-ID: <1959105.1698873750@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 14:23:28 -0700 (PDT) Oleg Nesterov wrote: > Just none of read_seqbegin_or_lock/need_seqretry/done_seqretry > helpers make any sense in this code. I disagree. I think in at least a couple of cases I do want a locked second path - ideally locked shared if seqlock can be made to use an rwlock instead of a spinlock. David