From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> Work needs to hold a reference on the pointers that it plans to use otherwise they can become free'd or unregistered. Expose the existing registration lock that netlink uses for this purpose. Jason Gunthorpe (2): RDMA/device: Expose ib_device_try_get(() IB/mlx5: Fix how advise_mr() launches async work drivers/infiniband/core/core_priv.h | 1 - drivers/infiniband/core/device.c | 6 +++--- drivers/infiniband/hw/mlx5/odp.c | 10 +++++----- include/rdma/ib_verbs.h | 24 ++++++++++++++++++++++-- 4 files changed, 30 insertions(+), 11 deletions(-) -- 2.20.1