RDMA/core: Make invalidate_range a device operation
The callback function 'invalidate_range' is implemented in a driver so the place for it is in the ib_device_ops structure and not in ib_ucontext. Signed-off-by: Moni Shoua <monis@mellanox.com> Reviewed-by: Guy Levi <guyle@mellanox.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Link: https://lore.kernel.org/r/20190819111710.18440-11-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Este commit está contenido en:

cometido por
Jason Gunthorpe

padre
37824952dc
commit
ce51346fee
@@ -1867,10 +1867,6 @@ static int mlx5_ib_alloc_ucontext(struct ib_ucontext *uctx,
|
||||
if (err)
|
||||
goto out_sys_pages;
|
||||
|
||||
if (ibdev->attrs.device_cap_flags & IB_DEVICE_ON_DEMAND_PAGING)
|
||||
context->ibucontext.invalidate_range =
|
||||
&mlx5_ib_invalidate_range;
|
||||
|
||||
if (req.flags & MLX5_IB_ALLOC_UCTX_DEVX) {
|
||||
err = mlx5_ib_devx_create(dev, true);
|
||||
if (err < 0)
|
||||
|
Referencia en una nueva incidencia
Block a user