summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJason Gunthorpe2019-01-12 03:31:24 +0100
committerJason Gunthorpe2019-01-21 22:39:29 +0100
commit951d01b96f174ded6180e7e4e14929ef22e7da7e (patch)
tree209d4714e9a384d70d72255283ba2a96384705ad /include/uapi
parentRDMA/device: Expose ib_device_try_get(() (diff)
downloadkernel-qcow2-linux-951d01b96f174ded6180e7e4e14929ef22e7da7e.tar.gz
kernel-qcow2-linux-951d01b96f174ded6180e7e4e14929ef22e7da7e.tar.xz
kernel-qcow2-linux-951d01b96f174ded6180e7e4e14929ef22e7da7e.zip
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')
0 files changed, 0 insertions, 0 deletions