1. 20 6月, 2018 5 次提交
  2. 19 6月, 2018 10 次提交
  3. 13 6月, 2018 1 次提交
  4. 06 6月, 2018 1 次提交
  5. 04 6月, 2018 1 次提交
  6. 02 6月, 2018 5 次提交
  7. 29 5月, 2018 1 次提交
  8. 24 5月, 2018 2 次提交
  9. 23 5月, 2018 1 次提交
  10. 17 5月, 2018 2 次提交
  11. 16 5月, 2018 1 次提交
    • L
      IB/umem: Use the correct mm during ib_umem_release · 8e907ed4
      Lidong Chen 提交于
      User-space may invoke ibv_reg_mr and ibv_dereg_mr in different threads.
      
      If ibv_dereg_mr is called after the thread which invoked ibv_reg_mr has
      exited, get_pid_task will return NULL and ib_umem_release will not
      decrease mm->pinned_vm.
      
      Instead of using threads to locate the mm, use the overall tgid from the
      ib_ucontext struct instead. This matches the behavior of ODP and
      disassociate in handling the mm of the process that called ibv_reg_mr.
      
      Cc: <stable@vger.kernel.org>
      Fixes: 87773dd5 ("IB: ib_umem_release() should decrement mm->pinned_vm from ib_umem_get")
      Signed-off-by: NLidong Chen <lidongchen@tencent.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      8e907ed4
  12. 10 5月, 2018 3 次提交
  13. 04 5月, 2018 2 次提交
    • S
      RDMA/nldev: helper functions to add driver attributes · 73937e8a
      Steve Wise 提交于
      These help rdma drivers to fill out the driver entries.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      73937e8a
    • S
      RDMA/nldev: add driver-specific resource tracking · da5c8507
      Steve Wise 提交于
      Each driver can register a "fill entry" function with the restrack core.
      This function will be called when filling out a resource, allowing the
      driver to add driver-specific details.  The details consist of a
      nltable of nested attributes, that are in the form of <key, [print-type],
      value> tuples.  Both key and value attributes are mandatory.  The key
      nlattr must be a string, and the value nlattr can be one of the driver
      attributes that are generic, but typed, allowing the attributes to be
      validated.  Currently the driver nlattr types include string, s32,
      u32, s64, and u64.  The print-type nlattr allows a driver to specify
      an alternative display format for user tools displaying the attribute.
      For example, a u32 attribute will default to "%u", but a print-type
      attribute can be included for it to be displayed in hex.  This allows
      the user tool to print the number in the format desired by the driver
      driver.
      
      More attrs can be defined as they become needed by drivers.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Reviewed-by: NLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      da5c8507
  14. 18 4月, 2018 1 次提交
    • J
      RDMA/rdma_cm: Delete rdma_addr_client · ee6548d1
      Jason Gunthorpe 提交于
      The only thing it does is block module unload while work is posted from
      rdma_resolve_ip().
      
      However, this is not the right place to do this. The users of
      rdma_resolve_ip() must ensure their own module does not unload until
      rdma_resolve_ip() calls the callback, or until rdma_addr_cancel() is
      called.
      
      Similarly callers to rdma_addr_find_l2_eth_by_grh() must ensure their
      module does not unload while they are calling code.
      
      The only two users are already safe, so there is no need for this.
      Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      ee6548d1
  15. 06 4月, 2018 3 次提交
  16. 05 4月, 2018 1 次提交