Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1546290lqg; Sun, 3 Mar 2024 15:58:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvF3uwl+W9SKpWlkE5AXgDDQUqZsPb+N27Ye5MWn38Ynhih2SBm5TDZYepC9mheqrcY93cdPanVOB41Mx9GpLxUYyKpI6nQSar+03rFw== X-Google-Smtp-Source: AGHT+IEZkTfAw2gVWF1i6lKdY9Uk7rdVEvE5mqWFcVQ6i2/Yi/SnC+rzR0k/WTf3OBdFtqXVsqr7 X-Received: by 2002:a05:6358:7f0a:b0:17b:520f:8249 with SMTP id p10-20020a0563587f0a00b0017b520f8249mr9005277rwn.31.1709510338628; Sun, 03 Mar 2024 15:58:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709510338; cv=pass; d=google.com; s=arc-20160816; b=vWOT5tru3e3hLeC0lIIWhlU6uRWhnad6cQSpqd6S8VvI7Xz8lkzXnqTxySETluZ2bH nU2SaHAhVRNieeUBGjqaaJ7dU4j/yfJpU00DCtHycgAL6wFxVygjapCk1CnjMwU4b+L4 9n8G6QGBOP3HOUFjYwckwaTe4IAE3sSXJAFSSoQdLeJlgStfW9KlRFelgTZHPMJ13hBp p9TRqsKyxxmAQRRXZj6ls6+p3CjldMdX7pH+idnWf0tQwZZsz4rMqgZ1dvHunxQEiu/A IPNQx23FQiwRGj+DzXkVHW8+NKbVci2z79Gm7w+T4KLhHrGEaiLokyp6jhzFEaoKRLRk tZGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:cc:to:references :in-reply-to:from:organization:dkim-signature; bh=CwgUwvTK5RnZGZzgBHSNiIrA39adWZ0Q9OWuqtSLT0g=; fh=o/80jYSa3+ctHKARvQ5nNvD6A84Trj0mj2zzPRWn1Ug=; b=c0Coiu+LrB1IFxuM6DrzcfDKjKMlH4vA5ZY8krspCVPZzPfaa5USn8+WY2lCbHGuhD 65gIb+Oxx8V44IjpCfMkR2tiovWaeB2p/z9qkVdCeCYksxHn512dLC/Hbs5mzgS+61Bp mOSD6RIskOxQBXXki/E/KcJy41sOLxjAkiSHpnCfvgtHwJkPymBH5Q8b1NDM5XfOSP/G kS2A4QQlsJCMLNNkj2HkDbQpUJ2+6yRdNMFWOoCN5G315DHZHIjdxW3gFsQ1b75S2fH4 /3bve0uV4ua5Nvm6YYzOx9qCpEZQL+ZXYh6w2M5iz7Fsuy+pXIZG8gsM12oEjyF/ZDS5 Y+Eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CjXrdn9h; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-89948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iv8-20020ad45ce8000000b006903c840a3esi8630221qvb.438.2024.03.03.15.58.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 15:58:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CjXrdn9h; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-89948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C8991C2092F for ; Sun, 3 Mar 2024 23:58:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DFAD7AE7F; Sun, 3 Mar 2024 23:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CjXrdn9h" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E51F26CBEE for ; Sun, 3 Mar 2024 23:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709510332; cv=none; b=B+RZZk0kE4q/XFhw24EGmqtV6mvASwxGrIV2pibPsObkPxX0Vq36euu1wrQKud3b0pKslE/oZ5A5pD/Rm48IC5c8ol/FRfdryMuuVldWif+EvQ0GnqNH1C790bzFAv++sdLO966azRrenKs+SgXH5t24MTmsfbfHCOAzoZNxr/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709510332; c=relaxed/simple; bh=cwctMdDhD+OxpkY3W3eOMu3a/HHSUXCkGV7ETxSV2Rk=; h=From:In-Reply-To:References:To:Cc:Subject:MIME-Version: Content-Type:Date:Message-ID; b=WxGvg7I88nKDk2zr0dvg5+khweiN5PVQoBAsEczNpWhghQS2Dj08/W3JV/nU58JQlaVz6z4APkFQ+n8rIYcDNxaJGK4C+XcUkJFikyy7Mlv6M2t7rF9Y6a2cPoIpcZtNfmZ2BgA5P9nTxItfXUZrmFCW29c3HbSCQ7bbEXNeIcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=CjXrdn9h; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709510329; 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=CwgUwvTK5RnZGZzgBHSNiIrA39adWZ0Q9OWuqtSLT0g=; b=CjXrdn9hRyv7jrpyK2SkK4lsRqXRMl6eBsSF9gqRD9ocNbXiX/mtqiYTGHJvZKx4DomIKy uIUUZwDSt8FXJOEcYotQbXYNdmIKj6TlqG1+011V6yYZTeBhs8x7JCXf8321kIycIDeUTC DmiQKUpnz+o5oNOMikm86lHQnDSfDLw= 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-536-rp5AFWSJO8OaHZWYVEpo-Q-1; Sun, 03 Mar 2024 18:58:48 -0500 X-MC-Unique: rp5AFWSJO8OaHZWYVEpo-Q-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (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 887A7811E81; Sun, 3 Mar 2024 23:58:47 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.114]) by smtp.corp.redhat.com (Postfix) with ESMTP id 674EB40C6EBA; Sun, 3 Mar 2024 23:58:46 +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: <20240302212702.15b04552@kernel.org> References: <20240302212702.15b04552@kernel.org> <20240301163807.385573-1-dhowells@redhat.com> <20240301163807.385573-19-dhowells@redhat.com> To: Jakub Kicinski Cc: dhowells@redhat.com, netdev@vger.kernel.org, Marc Dionne , "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 18/21] rxrpc: Use ktimes for call timeout tracking and set the timer lazily Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <645801.1709510325.1@warthog.procyon.org.uk> Date: Sun, 03 Mar 2024 23:58:45 +0000 Message-ID: <645802.1709510325@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 Jakub Kicinski wrote: > > Track the call timeouts as ktimes rather than jiffies as the latter's > > granularity is too high and only set the timer at the end of the event > > handling function. > > This one has a 64b div somewhere, breaks 32b builds. Ah - in the trace functions to make the ns-level durations into ms-level ones. I wonder if it's better to just divide by 1024 - so something close to microseconds - or whether ktime_to_us() can be used there. David