From: Jan Glauber Date: Sun, 24 Jul 2011 08:48:27 +0000 (+0200) Subject: [S390] race safe external interrupt registration X-Git-Tag: v3.1-rc1~261^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89c9b66b104549a8698e412bf6f4140c1d0786fb;p=pandora-kernel.git [S390] race safe external interrupt registration The (un-)register_external_interrupt functions are not race safe if more than one interrupt handler is added or deleted for an external interrupt concurrently. Make the registration / unregistration of external interrupts race safe by using RCU and a spinlock. RCU is used to avoid a performance penalty in the external interrupt handler, the register and unregister functions are protected by the spinlock and are not performance critical. call_rcu must be used since the SCLP driver uses the interface with IRQs disabled. Also use the generic list implementation rather than homebrewn list code. Signed-off-by: Jan Glauber Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed