[PATCH 0/9] trival fix or improvement about irq_desc access

Pingfan Liu
2022-04-20T14:05:45Z

When I went through the access of irq_to_desc(), I found the following
trival issue or improvement can be done.
[1-4/9]: clean up or small improvement
[5-6/9]: bugfix for access to irq_desc under releasable context
[7/9]: clean up
[8-9/9]: bugfix for irq debugfs

Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Baokun Li <libaokun1@huawei.com>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "Cédric Le Goater" <clg@kaod.org>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Dongli Zhang <dongli.zhang@oracle.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: "Maciej W. Rozycki" <macro@orcam.me.uk>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Oleksandr Natalenko <oleksandr@natalenko.name>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Qais Yousef <qais.yousef@arm.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Steven Price <steven.price@arm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom Rix <trix@redhat.com>
Cc: Valentin Schneider <valentin.schneider@arm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Yuan ZhaoXiong <yuanzhaoxiong@baidu.com>
Cc: YueHaibing <yuehaibing@huawei.com>
To: linux-kernel@vger.kernel.org

Pingfan Liu (9):
irq/irqdesc: put the lock at the exact place in irq_sysfs_init()
irq/irqdesc: change the name of delete_irq_desc() to irq_delete_desc()
irq/manage: remove some unreferenced code
s390/irq: utilize RCU instead of irq_lock_sparse() in
show_msi_interrupt()
x86/irq: place for_each_active_irq() in rcu read section
pm/irq: make for_each_irq_desc() safe of irq_desc release
irq: remove needless lock in takedown_cpu()
irq: make irq_lock_sparse() independent of CONFIG_SPARSE_IRQ
irq/irqdesc: rename sparse_irq_lock to bitmap_lock

.clang-format | 1 -
arch/s390/kernel/irq.c | 11 ++++----
arch/x86/kernel/apic/io_apic.c | 3 +++
include/linux/irq.h | 1 -
include/linux/irqdesc.h | 10 +++-----
include/linux/irqnr.h | 3 ---
kernel/cpu.c | 15 ++++-------
kernel/irq/cpuhotplug.c | 4 +--
kernel/irq/debugfs.c | 4 +--
kernel/irq/irqdesc.c | 47 +++++++++++++++++-----------------
kernel/irq/manage.c | 15 -----------
kernel/irq/pm.c | 3 +++
12 files changed, 47 insertions(+), 70 deletions(-)

--
2.31.1