RDMA/counters: Properly implement PID checks
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 15 Aug 2019 08:38:28 +0000 (11:38 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Aug 2019 17:44:44 +0000 (13:44 -0400)
commitc8b32408b4074232d93e64b6c23b2aa96dde448e
tree8b13537145129077d109e4e47d4602df1fec3cda
parent948a7287b29e06b8c629f5e70235d857a175ceaf
RDMA/counters: Properly implement PID checks

"Auto" configuration mode is called for visible in that PID
namespace and it ensures that all counters and QPs are coexist
in the same namespace and belong to same PID.

Fixes: 99fa331dc862 ("RDMA/counter: Add "auto" configuration mode support")
Reviewed-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190815083834.9245-3-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/counters.c