OSDN Git Service

IB/mlx5: Remove useless check in ODP handler
authorMoni Shoua <monis@mellanox.com>
Tue, 22 Jan 2019 06:48:43 +0000 (08:48 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Feb 2019 21:34:06 +0000 (14:34 -0700)
commit586f4e95c71a2443d0aa8d6993407ce0aaf77a09
tree7bf5452901de6e1069bb8a2a65b2e075c2bb8a07
parent52a72e2a395fa3c5ab5df41058a8511e87215730
IB/mlx5: Remove useless check in ODP handler

When handling an ODP event for a receive WQE in SRQ the target QP is
unknown. Therefore, it is wrong to ask if QP has a SRQ in the page-fault
handler.

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>
drivers/infiniband/hw/mlx5/odp.c