s390/zcrypt: ap bus rescan problem when toggle crypto adapters on/off
authorIngo Tuchscherer <ingo.tuchscherer@de.ibm.com>
Fri, 12 Apr 2013 15:52:08 +0000 (17:52 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 2 May 2013 15:10:20 +0000 (17:10 +0200)
commit56bbe686693df7edcca18d1808edd80609e63c31
treed7dec4848cacf09853f9677d4c8aeebb080050d6
parent1553556067cd759f4fae8410bdaad33f5add78cc
s390/zcrypt: ap bus rescan problem when toggle crypto adapters on/off

The bus rescan process was called simultaneously on
every device failure. This finally leads into race
conditions (double device add/remove actions).

This patch protects the rescan area by mutual exclusion
and improves ap_config_timer handling

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