OSDN Git Service

IB/mlx5: Set correct write permissions for implicit ODP MR
authorMoni Shoua <monis@mellanox.com>
Mon, 25 Feb 2019 06:53:00 +0000 (08:53 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Mar 2019 14:57:19 +0000 (10:57 -0400)
commit7095ec3ca00eba04553d4c323dc9dd160219dd68
tree5d0b0dfb4324c790eab04bceaa6bf891ee05bf58
parent0fca467e81468c61083174ae0639b1ee38de2994
IB/mlx5: Set correct write permissions for implicit ODP MR

The write access of an implicit MR is inherited to all of its children.
Therefore we must set the correct write access to the parent MR.

Pass full access_flags when creating umem to let it calculate write access
correctly.

Fixes: da6a496a34f2 ("IB/mlx5: Ranges in implicit ODP MR inherit its write access")
Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c