RDMA/restrack: Add an API to attach a task to a resource
authorMark Zhang <markz@mellanox.com>
Tue, 2 Jul 2019 10:02:32 +0000 (13:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 13:22:54 +0000 (10:22 -0300)
commit699a9c540a04d05aa342cd84606bc8b1e8c05b7b
treef1e00adeb4379f2adff3b33f5f82bbb5bbd2f560
parent7ade1ff96c7aa7e10445688a433d7ae39a13c6c9
RDMA/restrack: Add an API to attach a task to a resource

Add rdma_restrack_attach_task() which is able to attach a task other then
"current" to a resource.

Signed-off-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/restrack.c
drivers/infiniband/core/restrack.h