/* getattr, lookup, read, write, commit - A+4D other - timeo  */
unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer)
/* getattr, lookup, read, write, commit - A+4D other - timeo  */
unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer)
{
	unsigned long res;
	if (timer-- == 0)
		return rt->timeo;
	res = ((rt->srtt[timer] + 7) >> 3) + rt->sdrtt[timer];
	if (res > RPC_RTO_MAX)
		res = RPC_RTO_MAX;
	return res;
}