RDMA/rxe: Remove redundant page presence check
authorDaisuke Matsuda <dskmtsd@gmail.com>
Wed, 11 Jun 2025 16:27:58 +0000 (16:27 +0000)
committerLeon Romanovsky <leon@kernel.org>
Thu, 12 Jun 2025 11:07:40 +0000 (07:07 -0400)
commitc81fef22020c7467c08929330009c7c613e5ff5c
tree988853a06f37779d1b34634554221cb4db2f8568
parentbaa640d924e55eee9210164ac068ad32dbd69c20
RDMA/rxe: Remove redundant page presence check

hmm_pfn_to_page() does not return NULL. ib_umem_odp_map_dma_and_lock()
should return an error in case the target pages cannot be mapped until
timeout, so these checks can safely be removed.

Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Daisuke Matsuda <dskmtsd@gmail.com>
Link: https://patch.msgid.link/20250611162758.10000-1-dskmtsd@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/rxe/rxe_odp.c