Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1458231pxb; Thu, 14 Apr 2022 06:44:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZNZfrgAGA8VS3rpyIfNC65D5rK7S5buaO9StSncbS9A8taAhrSDNQ+8JkK8ctAwUy+5cK X-Received: by 2002:a17:902:8ec8:b0:156:847b:a8f8 with SMTP id x8-20020a1709028ec800b00156847ba8f8mr48246314plo.121.1649943839858; Thu, 14 Apr 2022 06:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649943839; cv=none; d=google.com; s=arc-20160816; b=UbEvK6M6gsFI2Au2fd43W1DQ4ee2tcqWPja4akT9NwQqH57BtTg1p19NVzK0XvJ7Vh kW245LAg/VL+/hLPPxW7SmdzTr0fDeA0k9hN34e0EYMwn5nDyhVEOKOGJ0Ldl9uj42Qk 2r1ig5t/xWe9XMRKepQ+8mKzidJhSXFd4y6QU9y+8NzfGfMbiPSUwiaWzFNbgdnhQWfG lXA3tOfOtGakv1KpZiETw4uhh+8o25lUWm70hcO7kwY0t5Od0Ce0ez2I1lcPP9ocDHEu uByhoSl1LVQaTsT5a4vWJ4dckOSyx4EjI1LlOqLm6wqB9KWK4PeXsGjAqE8Ad+vsXp7s OUnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RyDA9iTfWDztFEqgkjQ89chzQS7kxTaj+KPUwJ15bKQ=; b=WpVI9McWxIKYsNQip5YXQIoAmlivNRYGoqIEWJRAy5zd34Cy0AKTF1KbR/hHNSUi2A YQlNix96HnmxeEUs9J8YWkgRyvhubPqb889XzK11wb9ZKpMGnk4uk+L+u3yvmNseSeyP BkmGE8kXyrkFl5pDSdBvdfC9cXMNG1gyFURfjkDHJjmFle+TnHfTGHyUEsALssPVcWOT rapgu3OFSJS2dx5x/5i4SHdH0V4J2DjYG4EiqcYUmJYgXq+KJkNE8OXxt6pSdvOcklbO RiXTYi5c+LyjvNP6ooxYHmUZEIEKHYTsAwEx2tb0nz+D/zDVYuVp2yqZaioYOMWzZtkQ D/+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="hm/d5hw0"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a637347000000b0039945a301d1si8638743pgn.347.2022.04.14.06.43.43; Thu, 14 Apr 2022 06:43:59 -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=@google.com header.s=20210112 header.b="hm/d5hw0"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233973AbiDMRzr (ORCPT + 99 others); Wed, 13 Apr 2022 13:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236058AbiDMRzq (ORCPT ); Wed, 13 Apr 2022 13:55:46 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A32A46D847 for ; Wed, 13 Apr 2022 10:53:24 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-2ec04a2ebadso30745587b3.12 for ; Wed, 13 Apr 2022 10:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RyDA9iTfWDztFEqgkjQ89chzQS7kxTaj+KPUwJ15bKQ=; b=hm/d5hw0nIb0T07H45j4gZMonAjBta7sGE/+gSqIL0ZfSSa/i6jk87hXkRSs7z/C/R 60JnUaEuDn6DUDyPkIggKlVmAjiDTk/GQ9G/K/CI/Lm/vr+QIlfxHICshK8N13g1rBuh YrPka14d4JSk4qIJngtB173o0mOdiR4YgL6L760zRUikxvhg5TE0FZv7l4ezoZYu7B+V Qq+htzJHXO80lH3F1krxeje45ufFPml7qJsln/xNg/7PeZZ59HPVjDKkshG421Fxel1B BD61+ZtykRVGIM+sF3Z5LJCxQNE7xrXhVgpsB3QLLikglWiNO9XhjdL9JqPSAd/SV50s V5RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RyDA9iTfWDztFEqgkjQ89chzQS7kxTaj+KPUwJ15bKQ=; b=HBLWHIbMXnFlzKvgsxYeYU9nWJJsbxGTgzaHhcgjkQAIVSl/vat2odEInDFIN9MFFz cJT5xEwB4c5HQDArqDs3WrPXRJNHf40F7BsegYHVj7DtFyfUB2zpGZ5f5qKtuALvNt6n xPeKw/CGbPDlyH4/1gL9i2yelf7nYmbG1f5Br4PJub8wW+bEwCuZmRvaR+lJ7slqzaZ3 tiKqTXlJFs0S3ljYn5S8pQK3rnLwExBT8nh4h758ZrCL8cgeQXXk30Q2rxVwigqO83Zw 6hM4MvfOf1cfWXkTxEOrgMF7GVCSBje3tkkZAgkLpBDhMjGe/r/2CJt//Xz1Hx2DvbP3 PKIw== X-Gm-Message-State: AOAM532cAd47WN6qTZBjhgh1ULi7cpT8O5Dod4thnK27fEJrTGxtQ48s u07XY834GHplYYH+fnmDxGEmNfZbisPtvxF8Ab0QtQ== X-Received: by 2002:a0d:cb86:0:b0:2ec:894:aa51 with SMTP id n128-20020a0dcb86000000b002ec0894aa51mr27535ywd.467.1649872403635; Wed, 13 Apr 2022 10:53:23 -0700 (PDT) MIME-Version: 1.0 References: <164984498582.2000115.4023190177137486137.stgit@warthog.procyon.org.uk> <2419532.1649871672@warthog.procyon.org.uk> In-Reply-To: <2419532.1649871672@warthog.procyon.org.uk> From: Eric Dumazet Date: Wed, 13 Apr 2022 10:53:12 -0700 Message-ID: Subject: Re: [PATCH net] rxrpc: Restore removed timer deletion To: David Howells Cc: netdev@vger.kernel.org, Marc Dionne , linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Wed, Apr 13, 2022 at 10:41 AM David Howells wrote: > > Eric Dumazet wrote: > > > ok... so we have a timer and a work queue, both activating each other > > in kind of a ping pong ? > > Yes. I want to emit regular keepalive pokes. > > > Any particular reason not using delayed works ? > > Because there's a race between starting the keepalive timer when a new peer is > added and when the keepalive worker is resetting the timer for the next peer > in the list. This is why I'm using timer_reduce(). delayed_work doesn't > currently have such a facility. It's not simple to add because > try_to_grab_pending() as called from mod_delayed_work_on() cancels the timer - > which is not what I want it to do. > SGTM, thanks ! Reviewed-by: Eric Dumazet