rxrpc: Fix a bit of time confusion
The rxrpc_reduce_call_timer() function should be passed the 'current time'
in jiffies, not the current ktime time. It's confusing in rxrpc_resend
because that has to deal with both. Pass the correct current time in.
Note that this only affects the trace produced and not the functioning of
the code.
Fixes: a158bdd324
("rxrpc: Fix call timeouts")
Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
ace45bec6d
commit
f82eb88b0f
net/rxrpc
|
@ -238,7 +238,7 @@ static void rxrpc_resend(struct rxrpc_call *call, unsigned long now_j)
|
||||||
* retransmitting data.
|
* retransmitting data.
|
||||||
*/
|
*/
|
||||||
if (!retrans) {
|
if (!retrans) {
|
||||||
rxrpc_reduce_call_timer(call, resend_at, now,
|
rxrpc_reduce_call_timer(call, resend_at, now_j,
|
||||||
rxrpc_timer_set_for_resend);
|
rxrpc_timer_set_for_resend);
|
||||||
spin_unlock_bh(&call->lock);
|
spin_unlock_bh(&call->lock);
|
||||||
ack_ts = ktime_sub(now, call->acks_latest_ts);
|
ack_ts = ktime_sub(now, call->acks_latest_ts);
|
||||||
|
|
Loading…
Reference in New Issue