]> git.baikalelectronics.ru Git - kernel.git/commit
sgi-xp: nested calls to spin_lock_irqsave()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Jul 2012 21:02:38 +0000 (14:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jul 2012 23:04:47 +0000 (16:04 -0700)
commitcd87733921555611842948766af8d6bf85edb3a6
tree25b8dc9d54b703651bc2ebabb2d6dea09f433eb0
parent95a51fe353748ae024d7cc7b0622cbcf47047fd3
sgi-xp: nested calls to spin_lock_irqsave()

The code here has a nested spin_lock_irqsave().  It's not needed since
IRQs are already disabled and it causes a problem because it means that
IRQs won't be enabled again at the end.  The second call to
spin_lock_irqsave() will overwrite the value of irq_flags and we can't
restore the proper settings.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/sgi-xp/xpc_uv.c