OSDN Git Service

IB/mlx5: Validate correct PD before prefetch MR
authorMoni Shoua <monis@mellanox.com>
Sun, 17 Feb 2019 14:08:23 +0000 (16:08 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 21 Feb 2019 23:32:45 +0000 (16:32 -0700)
commit81dd4c4be3a765351189c7572ac963711d2bb652
tree7d01da15d3e14544bc97e651b7d2962b47fbe00e
parenta6bc3875f176f52c4a247c341e80d52dd4f5e356
IB/mlx5: Validate correct PD before prefetch MR

When prefetching odp mr it is required to verify that pd of the mr is
identical to the pd for which the advise_mr request arrived with.

This check was missing from synchronous flow and is added now.

Fixes: 813e90b1aeaa ("IB/mlx5: Add advise_mr() support")
Reported-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c