RDMA/rxe: Enable asynchronous prefetch for ODP MRs
authorDaisuke Matsuda <dskmtsd@gmail.com>
Thu, 22 May 2025 11:19:55 +0000 (11:19 +0000)
committerLeon Romanovsky <leon@kernel.org>
Thu, 12 Jun 2025 08:09:42 +0000 (04:09 -0400)
commit9284bc34c77399a12db1a191f35129882d067c90
tree2a770d7a0062fc317e8e1ac394968bca20a69beb
parent3576b0df1588a0fd0249c29975d9dc92ffd6f3c0
RDMA/rxe: Enable asynchronous prefetch for ODP MRs

Calling ibv_advise_mr(3) with flags other than IBV_ADVISE_MR_FLAG_FLUSH
invokes an asynchronous request. It is best-effort, and thus can safely be
deferred to the system-wide workqueue.

The reference counter in rxe_mr is used to ensure that the MRs persist and
that rxe is not terminated until the queued work is done.

Signed-off-by: Daisuke Matsuda <dskmtsd@gmail.com>
Link: https://patch.msgid.link/20250522111955.3227-3-dskmtsd@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/rxe/rxe_odp.c