On Fri, Jul 22, 2022 at 1:39 AM Bob Pearson <rpearsonhpe@xxxxxxxxx> wrote: > > On 7/21/22 18:34, Bob Pearson wrote: > > This patch allows the rxe driver to re-register an FMR > > with or without remapping the mr. It adds > > a state variable that shows if the mr has been remapped > > and then only swaps the map sets if the mr has been > > remapped. Hi Bob, This patch is not applying to any of the rdma branches. > > > > This is an alternative that does not require getting rid of dual map sets. > The current code assumes that map_mr_sg is always called between calls to reg_mr and invalidate_mr. > This implements a state machine that marks the mr when it has been remapped and only in that case > swaps the map sets. Otherwise it could never perform the sequence you want for rtrs. > > Bob