Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2138334pxb; Fri, 25 Mar 2022 11:46:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9xKB/62H/Kpd7LuOsmgWqOB8qSrrgYUBAKm1/6XTL5wcu05CXWDbW5shdCNjfRs/Yel9W X-Received: by 2002:a17:90b:4b0e:b0:1c6:f499:1cc9 with SMTP id lx14-20020a17090b4b0e00b001c6f4991cc9mr26381601pjb.133.1648233986861; Fri, 25 Mar 2022 11:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648233986; cv=none; d=google.com; s=arc-20160816; b=mY3Yy8Qs2zWYeUhf66KDLe8cDe2Jyf3X31Is/xMtQuCGPqa3TEdGqDmiBS60S6WjWM ei1pdAF24DdxLX6/p1qXRWhoOpFIuTxvEE3CObdezc3uXB2iCtg5kMx/03/9Goc/7u2r 5+BEAY5AIsO/+NYtuZa7ucJq4rSBBQ44aFYyzuMHgl7jWbFTkuPTmjzGVI7UkTXKURVg uc/ZOaW7U9xiXK4lhvWxhe+mAhNTF0rI41+74buypeg7inJ4UtfBJ+lIHzxJyy1YTeJT dgCkEDw7gWqeArgCxAaeujkORklOGghWJXSqcX0ThKZ02oYThCavc877eZs/5Hy3bKvb udMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mnoovn4iIxQv1+UzkN6Wleh5OeGZAIr5QweFyWnmYAk=; b=xGF07UC7J8v3R1THA9zbIaAa79u1vGDw6uhbewWnpVvxwpQnwnTKsUaarlEVYhn320 ET0koiuI6nyGmoStvOdluB/qq5aSsXeaU5f8nTNDWlDAnnupT0cuIwqJRRe+E65sPhLr wNh/GRcg72zm4E5NhfXz5iHFztny3FMBRcIs5dGiHsepL/ayaAJgEIGKxeOVII6wVQQ9 N98CSlhX3gXyYQ6MiLgUpqeehP/qjVPRCQLpJCWVfSW7y7I2iA9QdKEnqfgnFvdF17Zi MWjnVdfXWTXBUllkS2FlpVYSllPmxNzLzb299deqMIG8E5Iq1dcvcvpY3za7++bJ0UlI cy4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bb3E4KTL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cr6-20020a056a000f0600b004fab9240197si3232053pfb.48.2022.03.25.11.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:46:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bb3E4KTL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 423D31BBF5F; Fri, 25 Mar 2022 11:04:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241420AbiCWLSW (ORCPT + 99 others); Wed, 23 Mar 2022 07:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243792AbiCWLSU (ORCPT ); Wed, 23 Mar 2022 07:18:20 -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 ESMTP id A334F78927 for ; Wed, 23 Mar 2022 04:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648034210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mnoovn4iIxQv1+UzkN6Wleh5OeGZAIr5QweFyWnmYAk=; b=Bb3E4KTLjKcpyG4eEXj69l7Cejj6WcTxndV8CNSulsAozAP5TUt9spP3fbYlAqB1RpCN/c QYRH1i/KmsMUbrUY9QjFtwt7mk7HoHn23oqQf+UUyYQ9UxKEDwTyfBSL4/zeB1XFHKkQEm 1vw+Vr+GJjets9mX67Fjeex/CCvwpWY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-616-dR4WZOF0Nc-6z-9VayGMMA-1; Wed, 23 Mar 2022 07:16:47 -0400 X-MC-Unique: dR4WZOF0Nc-6z-9VayGMMA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C90D318A6581; Wed, 23 Mar 2022 11:16:46 +0000 (UTC) Received: from shodan.usersys.redhat.com (unknown [10.43.17.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A5BF3112132C; Wed, 23 Mar 2022 11:16:46 +0000 (UTC) Received: by shodan.usersys.redhat.com (Postfix, from userid 1000) id 49D591C0223; Wed, 23 Mar 2022 12:16:45 +0100 (CET) From: Artem Savkov To: tglx@linutronix.de, jpoimboe@redhat.com, netdev@vger.kernel.org Cc: davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, linux-kernel@vger.kernel.org, Artem Savkov Subject: [PATCH 0/2] Upper bound mode for kernel timers Date: Wed, 23 Mar 2022 12:16:40 +0100 Message-Id: <20220323111642.2517885-1-asavkov@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_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 As previously discussed [1] we had a report of a regression in TCP keepalive timer where timers were up to 4 minutes late resulting in disconnects. This patchset tries to fix the problem by introducing upper bound kernel timers and making tcp keepalive timer use those. [1] https://lore.kernel.org/all/20210302001054.4qgrvnkltvkgikzr@treble/T/#u Artem Savkov (2): timer: introduce upper bound timers net: make tcp keepalive timer upper bound include/linux/timer.h | 3 ++- kernel/time/timer.c | 36 ++++++++++++++++++++------------- net/ipv4/inet_connection_sock.c | 2 +- 3 files changed, 25 insertions(+), 16 deletions(-) -- 2.34.1