s390/pai: rework pai_crypto mapped buffer reference count
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 20 Oct 2022 09:38:05 +0000 (11:38 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 26 Oct 2022 12:46:51 +0000 (14:46 +0200)
commitd3db4ac3c761def3d3a8e5ea6d05d1636c44c2ba
treea5e5714994cc2c810e102b189f51e07ac3c675fe
parent4c78796301700bb9de82fce34c33adb1699b0ed9
s390/pai: rework pai_crypto mapped buffer reference count

Rework the mapped buffer reference count in PMU pai_crypto
to match the same technique as in PMU pai_ext.
This simplifies the logic.
Do not count the individual number of counter and sampling
processes. Remember the type of access and the total number of
references to the buffer.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/perf_pai_crypto.c