RDMA/rtrs-clt: Fix the initial value of min_latency
authorJack Wang <jinpu.wang@ionos.com>
Wed, 24 Nov 2021 08:10:40 +0000 (09:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:04:07 +0000 (11:04 +0100)
commita2e525d618012a7070af633e138e235d2065909a
treebc55a145690044a45b0981638aee35d8d039ba79
parent278df2c08602cfc7f1db74394d93c12e4fe4cbd1
RDMA/rtrs-clt: Fix the initial value of min_latency

[ Upstream commit 925cac6358677d3d64f9b25f205eeb3d31c9f7f8 ]

The type of min_latency is ktime_t, so use KTIME_MAX to initialize the
initial value.

Fixes: dc3b66a0ce70 ("RDMA/rtrs-clt: Add a minimum latency multipath policy")
Link: https://lore.kernel.org/r/20211124081040.19533-1-jinpu.wang@ionos.com
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Reviewed-by: Guoqing Jiang <Guoqing.Jiang@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs-clt.c