]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rxe: Make counters thread safe
authorParav Pandit <parav@mellanox.com>
Fri, 14 Dec 2018 06:32:42 +0000 (00:32 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 20 Dec 2018 21:09:45 +0000 (14:09 -0700)
commitbbb5d377c89d6fbb205a430b87612ea880734ae0
treec52aa055bdfb5defb1dd6ad5001e21f1f800d01a
parent51cd75124b09ad94bfdf795caf09a31b5faca27b
IB/rxe: Make counters thread safe

Current rxe device counters are not thread safe.
When multiple QPs are used, they can be racy.
Make them thread safe by making it atomic64.

Fixes: 476f2a36fdbf ("IB/rxe: Add port protocol stats")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_hw_counters.c
drivers/infiniband/sw/rxe/rxe_verbs.h