]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: Show load of cards and queues in sysfs
authorHarald Freudenberger <freude@de.ibm.com>
Thu, 7 Jun 2018 13:09:48 +0000 (15:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 25 Jun 2018 08:21:17 +0000 (10:21 +0200)
commit876f39c69ec8d692355f2df3cbb403bf06d9fd3a
treea2574011414d613b71333d10cd98f6ec20f3ce62
parentf2a5f7f0b635fda6984759672cf01b9b6ebdabee
s390/zcrypt: Show load of cards and queues in sysfs

Show the current load value of cards and queues in sysfs.
The load value for each card and queue is maintained by
the zcrypt device driver for dispatching and load
balancing requests over the available devices.

This patch provides the load value to userspace via a
new read only sysfs attribute 'load' per card and queue.

Signed-off-by: Harald Freudenberger <freude@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/zcrypt_card.c
drivers/s390/crypto/zcrypt_queue.c