Skip to content

Commit

Permalink
rxrpc: Should be using ktime_add_ms() not ktime_add_ns()
Browse files Browse the repository at this point in the history
ktime_add_ms() should be used to add the resend time (in ms) rather than
ktime_add_ns().

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Sep 23, 2016
1 parent c0d058c commit 90bd684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rxrpc/call_event.c
Original file line number Diff line number Diff line change
@@ -187,7 +187,7 @@ static void rxrpc_resend(struct rxrpc_call *call)
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));

/* Now go through the Tx window and perform the retransmissions. We

0 comments on commit 90bd684

Please sign in to comment.