s390/cpum_cf: Handle EBUSY return code from CPU counter facility reservation
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 22 Jan 2019 10:55:18 +0000 (10:55 +0000)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 22 Feb 2019 08:19:58 +0000 (09:19 +0100)
commit47b7478583aa0ba7b85a88d5ece78a21a7c846c5
tree0f83183816677b5c6e35f8e19589d0f1055b3f1c
parentfb3a0b61e0d4e435016cc91575d051f841791da0
s390/cpum_cf: Handle EBUSY return code from CPU counter facility reservation

Rservation of the CPU Measurement Counter facility may fail if
it is already in use by the cf_diag device driver.
This is indicated by a non zero return code (-EBUSY).
However this return code is ignored and the counter facility
may be used in parallel by different device drivers.

Handle the failing reservation and return an error to the
caller.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/perf_cpum_cf.c