IB/mlx5: Fix implicit ODP interrupted page fault
authorArtemy Kovalyov <artemyko@mellanox.com>
Tue, 27 Nov 2018 06:51:25 +0000 (08:51 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Dec 2018 21:52:53 +0000 (16:52 -0500)
commit37b06e5078975bb4efe3cbd91e254112851b125f
tree5a406a7f0fe420cfd586fc84f5935bc6a373f475
parent36d842194a57f1b21fbc6a6875f2fa2f9a7f8679
IB/mlx5: Fix implicit ODP interrupted page fault

Since any page fault may be interrupted by a MMU invalidation and implicit
leaf MR may be released during this process. The check for parent value
is unreliable condition for an implicit MR.
Use other condition that we can rely on to determine if MR is implicit.

Fixes: b4cfe447d47b ("IB/mlx5: Implement on demand paging by adding support for MMU notifiers")
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/odp.c