[PATCH for-rc 0/2] Fix poor reference counting in advice_mr work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux