RDMA/rtrs: Require holding rcu_read_lock explicitly
authorZhu Yanjun <yanjun.zhu@linux.dev>
Tue, 19 Sep 2023 07:37:27 +0000 (15:37 +0800)
committerLeon Romanovsky <leon@kernel.org>
Tue, 19 Sep 2023 08:23:17 +0000 (11:23 +0300)
commit20a02837fb5e162764828f6ec1b1f75a5de3fca4
treeda0dd2b069cb74daeb87350e51fcd4e61f7d4bc4
parent81760bedc65194ff38e1e4faefd5f9f0c95c19a4
RDMA/rtrs: Require holding rcu_read_lock explicitly

No functional change. The function get_next_path_rr needs to hold
rcu_read_lock. As such, if no rcu read lock, warnings will pop out.

Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Link: https://lore.kernel.org/r/20230919073727.540207-1-yanjun.zhu@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs-clt.c