s390/zcrypt: fixed ap poll timer behavior
authorIngo Tuchscherer <ingo.tuchscherer@de.ibm.com>
Tue, 28 Apr 2015 08:31:44 +0000 (10:31 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 30 Apr 2015 11:50:35 +0000 (13:50 +0200)
commit8cc2af7c530e320db442e6efec8c84c125c07c81
tree748c7d0345ad49ef9a3fad95b96b156304c63a65
parent771aada9ace7e5dd837a69ef0bca08b5455b2d36
s390/zcrypt: fixed ap poll timer behavior

The ap poll timer restart condition was wrong. Hence the poll timer
was not restarted reliable when setting a new time interval via the
poll_timeout sysfs attribute.
Added missing timer locking.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c