]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/restrack: Make is_visible_in_pid_ns() as an API
authorMark Zhang <markz@mellanox.com>
Tue, 2 Jul 2019 10:02:33 +0000 (13:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 13:22:54 +0000 (10:22 -0300)
commit2b939a57c1d4a845d4d424b5c47a09e79ddba4bf
tree282245b95175673026c15c6922cfe25c70c2b320
parentfb46d6d4e79067359cec7e1b574cd2a157f6ed4e
RDMA/restrack: Make is_visible_in_pid_ns() as an API

Remove is_visible_in_pid_ns() from nldev.c and make it as a restrack API,
so that it can be taken advantage by other parts like counter.

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/nldev.c
drivers/infiniband/core/restrack.c
drivers/infiniband/core/restrack.h