Heiko Carstens 98c1c68252 [S390] cio/crw: add/fix locking
The crw_unregister_handler uses xchg + synchronize_sched when
unregistering a crw_handler.
This doesn't protect crw_collect_info to potentially jump to NULL since
it has unlocked code like this:

if (crw_handlers[i])
        crw_handlers[i](NULL, NULL, 1);

So add a mutex which protects the crw handler array for changes.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2009-03-26 15:24:13 +01:00
..
2008-07-14 10:02:11 +02:00
2008-12-25 13:39:10 +01:00
2009-03-26 15:24:13 +01:00
2008-07-14 10:02:12 +02:00
2008-10-10 21:33:53 +02:00
2008-10-10 21:33:53 +02:00
2009-01-08 08:31:15 -08:00