IB/mlx5: Only synchronize RCU once when removing mkeys
authorDaniel Jurgens <danielj@mellanox.com>
Tue, 13 Mar 2018 13:18:47 +0000 (15:18 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Mar 2018 20:05:16 +0000 (16:05 -0400)
commit65edd0e758b8a215825fb3ee685c8eaf6a9cc0d0
tree998179bb8869a2cbe0954874d7b4702caafd8289
parent72f7cc09b143cf972c8c7571fc95d1017ba76c3d
IB/mlx5: Only synchronize RCU once when removing mkeys

Instead synchronizing RCU in a loop when removing mkeys in a batch do it
once at the end before freeing them. The result is only waiting for one
RCU grace period instead of many serially.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c