]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbe0f5a82cc6dbb3440f80c7124edefdc78cd93c
tree8b13537145129077d109e4e47d4602df1fec3cda
parente9f360e2d9ce69ebdaf7554f7abcb310d0581be7
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: 708f83eea5bb ("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