From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C73EECAAD8 for ; Wed, 14 Sep 2022 09:02:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230407AbiINJCS (ORCPT ); Wed, 14 Sep 2022 05:02:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbiINJBk (ORCPT ); Wed, 14 Sep 2022 05:01:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97B9575480; Wed, 14 Sep 2022 02:01:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9BF13619A9; Wed, 14 Sep 2022 09:01:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5DF3C433B5; Wed, 14 Sep 2022 09:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663146096; bh=wWLBRCoyI+A/DImeDDnxC1KCwDlW7lSe99pqruGvWlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=azneI1ceTMGCwvcnLeQoUPTuqgF2WTpV09tt2Fqdvj/httPmBnHSOHxfJ+7D0ssPX JpRVlSmxvZxLhz6YDrx+4gtUnQA1MhVbbFIfVsRiBV21EPsj5+DPSbNdh3MyUwL03Y I05i1xymbebapJtpblOVl3SUF4JPCLFVjwcWI3jO4Ipqk0ied1EIRBj0OtsqVDkVYW mS2JXMnfPSHTbUvRcdpHeKPVnqMDsFAUZF0l/LHMMKXzUU/WseEB+Wo8pXoOIT+4lB HPXPT6Unw3bFWd7d6K0iKy87DhJiZ9M6t1Zkgfg3hZLuKxH0hbkiDtRp2z1Ui9fPZr AwuJqem24KUKw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: David Howells , Sasha Levin , marc.dionne@auristor.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-afs@lists.infradead.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.19 09/22] rxrpc: Fix calc of resend age Date: Wed, 14 Sep 2022 05:00:50 -0400 Message-Id: <20220914090103.470630-9-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220914090103.470630-1-sashal@kernel.org> References: <20220914090103.470630-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: David Howells [ Upstream commit 214a9dc7d852216e83acac7b75bc18f01ce184c2 ] Fix the calculation of the resend age to add a microsecond value as microseconds, not nanoseconds. Signed-off-by: David Howells Signed-off-by: Sasha Levin --- net/rxrpc/call_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event.c index f8ecad2b730e8..2a93e7b5fbd05 100644 --- a/net/rxrpc/call_event.c +++ b/net/rxrpc/call_event.c @@ -166,7 +166,7 @@ static void rxrpc_resend(struct rxrpc_call *call, unsigned long now_j) _enter("{%d,%d}", call->tx_hard_ack, call->tx_top); now = ktime_get_real(); - max_age = ktime_sub(now, jiffies_to_usecs(call->peer->rto_j)); + max_age = ktime_sub_us(now, jiffies_to_usecs(call->peer->rto_j)); spin_lock_bh(&call->lock); -- 2.35.1