]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/irq: Use proper locking in check_irq_vectors_for_cpu_disable()
authorThomas Gleixner <tglx@linutronix.de>
Sun, 5 Jul 2015 17:12:33 +0000 (17:12 +0000)
committerEthan Zhao <ethan.zhao@oracle.com>
Wed, 23 Aug 2017 03:57:00 +0000 (12:57 +0900)
commit3accbe981a9fa4de96af39f6c03a0cc6dfdb922e
treeaaf225ae2f10dd101bd3f3efbc280476f7bd8539
parent5b1e36a0f31a886413d5023085d1fabb64cc2100
x86/irq: Use proper locking in check_irq_vectors_for_cpu_disable()

It's unsafe to examine fields in the irq descriptor w/o holding the
descriptor lock. Add proper locking.

While at it add a comment why the vector check can run lock less

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: xiao jin <jin.xiao@intel.com>
Cc: Joerg Roedel <jroedel@suse.de>
Cc: Borislav Petkov <bp@suse.de>
Cc: Yanmin Zhang <yanmin_zhang@linux.intel.com>
Link: http://lkml.kernel.org/r/20150705171102.236544164@linutronix.de
(cherry picked from commit cbb24dc761d95fe39a7a122bb1b298e9604cae15)

Orabug: 25671838

Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
arch/x86/kernel/irq.c