IB/mlx5: Fix the locking of SRQ objects in ODP events
QP and SRQ objects are stored in different containers so the action to get and lock a common resource during ODP event needs to address that. While here get rid of 'refcount' and 'free' fields in mlx5_core_srq struct and use the fields with same semantics in common structure. Fixes: 032080ab ("IB/mlx5: Lock QP during page fault handling") Signed-off-by:Moni Shoua <monis@mellanox.com> Reviewed-by:
Majd Dibbiny <majd@mellanox.com> Signed-off-by:
Leon Romanovsky <leonro@mellanox.com> Signed-off-by:
Jason Gunthorpe <jgg@mellanox.com>
Showing
- drivers/infiniband/hw/mlx5/cq.c 2 additions, 2 deletionsdrivers/infiniband/hw/mlx5/cq.c
- drivers/infiniband/hw/mlx5/odp.c 8 additions, 5 deletionsdrivers/infiniband/hw/mlx5/odp.c
- drivers/infiniband/hw/mlx5/srq.h 0 additions, 2 deletionsdrivers/infiniband/hw/mlx5/srq.h
- drivers/infiniband/hw/mlx5/srq_cmd.c 7 additions, 9 deletionsdrivers/infiniband/hw/mlx5/srq_cmd.c
Loading
Please register or sign in to comment