From: Heiko Carstens Date: Thu, 26 Mar 2009 14:24:09 +0000 (+0100) Subject: [S390] cio/crw: add/fix locking X-Git-Tag: v2.6.30-rc1~659^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98c1c6825247c71e3d8a9a5439ba21fce7563014;p=pandora-kernel.git [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 Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed