Commit 90bd684d authored by David Howells's avatar David Howells

rxrpc: Should be using ktime_add_ms() not ktime_add_ns()

ktime_add_ms() should be used to add the resend time (in ms) rather than
ktime_add_ns().
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent c0d058c2
...@@ -187,7 +187,7 @@ static void rxrpc_resend(struct rxrpc_call *call) ...@@ -187,7 +187,7 @@ static void rxrpc_resend(struct rxrpc_call *call)
call->rxtx_annotations[ix] = RXRPC_TX_ANNO_RETRANS | annotation; call->rxtx_annotations[ix] = RXRPC_TX_ANNO_RETRANS | annotation;
} }
resend_at = ktime_sub(ktime_add_ns(oldest, rxrpc_resend_timeout), now); resend_at = ktime_sub(ktime_add_ms(oldest, rxrpc_resend_timeout), now);
call->resend_at = jiffies + nsecs_to_jiffies(ktime_to_ns(resend_at)); call->resend_at = jiffies + nsecs_to_jiffies(ktime_to_ns(resend_at));
/* Now go through the Tx window and perform the retransmissions. We /* Now go through the Tx window and perform the retransmissions. We
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment