OSDN Git Service

RDMA/rtrs-clt: Use this_cpu_ API for stats
authorSantosh Kumar Pradhan <santosh.pradhan@ionos.com>
Tue, 12 Jul 2022 10:31:10 +0000 (12:31 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 18 Jul 2022 09:27:40 +0000 (12:27 +0300)
commit861703b4c76e645949b7a42bbcc48cf775fd45d4
tree2d453de6966e8b3c986621da4d433914f07257ac
parented6e53820ee4f68ed927de17e5675ff2a07a47e2
RDMA/rtrs-clt: Use this_cpu_ API for stats

Use this_cpu_x() for increasing/adding a percpu counter through a
percpu pointer without the need to disable/enable preemption.

Link: https://lore.kernel.org/r/20220712103113.617754-3-haris.iqbal@ionos.com
Suggested-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Santosh Kumar Pradhan <santosh.pradhan@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Acked-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs-clt-stats.c