* [PATCH for-rc] RDMA/uverbs: Track dmabuf memory regions
@ 2021-08-12 13:56 Gal Pressman
2021-08-12 14:00 ` Leon Romanovsky
2021-08-19 13:24 ` Jason Gunthorpe
0 siblings, 2 replies; 3+ messages in thread
From: Gal Pressman @ 2021-08-12 13:56 UTC (permalink / raw)
To: Jason Gunthorpe, Doug Ledford
Cc: linux-rdma, Jianxin Xiong, Leon Romanovsky, Gal Pressman
The dmabuf memory registrations are missing the restrack handling and
hence do not appear in rdma tool.
Fixes: bfe0cc6eb249 ("RDMA/uverbs: Add uverbs command for dma-buf based MR registration")
Signed-off-by: Gal Pressman <galpress@amazon.com>
---
drivers/infiniband/core/uverbs_std_types_mr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/infiniband/core/uverbs_std_types_mr.c b/drivers/infiniband/core/uverbs_std_types_mr.c
index f782d5e1aa25..03e1db5d1e8c 100644
--- a/drivers/infiniband/core/uverbs_std_types_mr.c
+++ b/drivers/infiniband/core/uverbs_std_types_mr.c
@@ -249,6 +249,9 @@ static int UVERBS_HANDLER(UVERBS_METHOD_REG_DMABUF_MR)(
mr->uobject = uobj;
atomic_inc(&pd->usecnt);
+ rdma_restrack_new(&mr->res, RDMA_RESTRACK_MR);
+ rdma_restrack_set_name(&mr->res, NULL);
+ rdma_restrack_add(&mr->res);
uobj->object = mr;
uverbs_finalize_uobj_create(attrs, UVERBS_ATTR_REG_DMABUF_MR_HANDLE);
--
2.32.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH for-rc] RDMA/uverbs: Track dmabuf memory regions
2021-08-12 13:56 [PATCH for-rc] RDMA/uverbs: Track dmabuf memory regions Gal Pressman
@ 2021-08-12 14:00 ` Leon Romanovsky
2021-08-19 13:24 ` Jason Gunthorpe
1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2021-08-12 14:00 UTC (permalink / raw)
To: Gal Pressman; +Cc: Jason Gunthorpe, Doug Ledford, linux-rdma, Jianxin Xiong
On Thu, Aug 12, 2021 at 04:56:06PM +0300, Gal Pressman wrote:
> The dmabuf memory registrations are missing the restrack handling and
> hence do not appear in rdma tool.
>
> Fixes: bfe0cc6eb249 ("RDMA/uverbs: Add uverbs command for dma-buf based MR registration")
> Signed-off-by: Gal Pressman <galpress@amazon.com>
> ---
> drivers/infiniband/core/uverbs_std_types_mr.c | 3 +++
> 1 file changed, 3 insertions(+)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH for-rc] RDMA/uverbs: Track dmabuf memory regions
2021-08-12 13:56 [PATCH for-rc] RDMA/uverbs: Track dmabuf memory regions Gal Pressman
2021-08-12 14:00 ` Leon Romanovsky
@ 2021-08-19 13:24 ` Jason Gunthorpe
1 sibling, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2021-08-19 13:24 UTC (permalink / raw)
To: Gal Pressman; +Cc: Doug Ledford, linux-rdma, Jianxin Xiong, Leon Romanovsky
On Thu, Aug 12, 2021 at 04:56:06PM +0300, Gal Pressman wrote:
> The dmabuf memory registrations are missing the restrack handling and
> hence do not appear in rdma tool.
>
> Fixes: bfe0cc6eb249 ("RDMA/uverbs: Add uverbs command for dma-buf based MR registration")
> Signed-off-by: Gal Pressman <galpress@amazon.com>
> Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
> ---
> drivers/infiniband/core/uverbs_std_types_mr.c | 3 +++
> 1 file changed, 3 insertions(+)
Applied to for-rc, thanks
Jason
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-19 13:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-12 13:56 [PATCH for-rc] RDMA/uverbs: Track dmabuf memory regions Gal Pressman
2021-08-12 14:00 ` Leon Romanovsky
2021-08-19 13:24 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).