diff options
author | David Howells <dhowells@redhat.com> | 2016-09-26 23:12:49 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-30 15:40:11 +0200 |
commit | df0adc788ae74e35ab1a79f3db878df7fdc7db55 (patch) | |
tree | c47e59c2105fb9743a68b38af3db2b40d2c69ee6 /net/rxrpc/input.c | |
parent | rxrpc: Remove error from struct rxrpc_skb_priv as it is unused (diff) | |
download | linux-df0adc788ae74e35ab1a79f3db878df7fdc7db55.tar.xz linux-df0adc788ae74e35ab1a79f3db878df7fdc7db55.zip |
rxrpc: Keep the call timeouts as ktimes rather than jiffies
Keep that call timeouts as ktimes rather than jiffies so that they can be
expressed as functions of RTT.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/input.c')
-rw-r--r-- | net/rxrpc/input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c index 5ba35b4a907b..3ad9f75031e3 100644 --- a/net/rxrpc/input.c +++ b/net/rxrpc/input.c @@ -328,7 +328,8 @@ static bool rxrpc_receiving_reply(struct rxrpc_call *call) call->resend_at = call->expire_at; call->ack_at = call->expire_at; spin_unlock_bh(&call->lock); - rxrpc_set_timer(call, rxrpc_timer_init_for_reply); + rxrpc_set_timer(call, rxrpc_timer_init_for_reply, + ktime_get_real()); } if (!test_bit(RXRPC_CALL_TX_LAST, &call->flags)) |