summaryrefslogtreecommitdiff
path: root/include/uapi/rdma/hns-abi.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2019-01-11 19:31:24 -0700
committerJason Gunthorpe <jgg@mellanox.com>2019-01-21 14:39:29 -0700
commit951d01b96f174ded6180e7e4e14929ef22e7da7e (patch)
tree209d4714e9a384d70d72255283ba2a96384705ad /include/uapi/rdma/hns-abi.h
parentd79af7242bb237d00e40092810e6828fbb929d2d (diff)
downloadlinux-next-951d01b96f174ded6180e7e4e14929ef22e7da7e.tar.gz
IB/mlx5: Fix how advise_mr() launches async work
Work must hold a kref on the ib_device otherwise the dev pointer can become free before the work runs. This can happen because the work is being pushed onto the system work queue which is not flushed during driver unregister. Remove the bogus use of 'reg_state': - While in uverbs the reg_state is guaranteed to always be REGISTERED - Testing reg_state with no locking is bogus. Use ib_device_try_get() to get back into a region that prevents unregistration. For now continue with a flow that is similar to the existing code. Fixes: 813e90b1aeaa ("IB/mlx5: Add advise_mr() support") Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Reviewed-by: Moni Shoua <monis@mellanox.com>
Diffstat (limited to 'include/uapi/rdma/hns-abi.h')
0 files changed, 0 insertions, 0 deletions