linux_dsm_epyc7002/drivers/infiniband
Mark Bloch e945130b52 IB/core: Protect against concurrent access to hardware stats
Currently access to hardware stats buffer isn't protected, this can
result in multiple writes and reads at the same time to the same
memory location. This can lead to providing an incorrect value to
the user. Add a mutex to protect against it.

Fixes: b40f4757da ("IB/core: Make device counter infrastructure dynamic")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-03-27 15:07:21 -06:00
..
core IB/core: Protect against concurrent access to hardware stats 2018-03-27 15:07:21 -06:00
hw IB/mlx5: Respect new UMR capabilities 2018-03-27 14:43:10 -06:00
sw RDMA/rxe: Fix uABI structure layouts for 32/64 compat 2018-03-27 14:25:09 -06:00
ulp IB/srp: Disallow duplicate RDMA/CM connections 2018-03-19 13:54:50 -06:00
Kconfig IB/uverbs: Enable ioctl() uAPI by default for new verbs 2018-03-19 14:45:17 -06:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00