]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ef007affe49783b27e8dc7182e35f5eee4f9dc1
treed7dec4848cacf09853f9677d4c8aeebb080050d6
parenteffb79a9edd195237fac859d0ec957ea59244643
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