summaryrefslogtreecommitdiff
path: root/net/rxrpc/call_event.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2022-04-05 15:34:09 +0300
committerDavid Howells <dhowells@redhat.com>2022-09-01 13:44:12 +0300
commit214a9dc7d852216e83acac7b75bc18f01ce184c2 (patch)
treee1f42617988567b1b0d003c39d47f26de05c34d1 /net/rxrpc/call_event.c
parentd3d863036d688313f8d566b87acd7d99daf82749 (diff)
downloadlinux-214a9dc7d852216e83acac7b75bc18f01ce184c2.tar.xz
rxrpc: Fix calc of resend age
Fix the calculation of the resend age to add a microsecond value as microseconds, not nanoseconds. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/call_event.c')
-rw-r--r--net/rxrpc/call_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event.c
index f8ecad2b730e..2a93e7b5fbd0 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);