diff options
| author | Oliver Upton <[email protected]> | 2024-02-21 05:42:52 +0000 |
|---|---|---|
| committer | Oliver Upton <[email protected]> | 2024-02-23 21:46:02 +0000 |
| commit | 50ac89bb709275731217f74da8ccef8c99def319 (patch) | |
| tree | e05f78354f8d5b32edf7f6fe364503eaf78c2209 /drivers/fpga/fpga-region.c | |
| parent | KVM: arm64: vgic: Rely on RCU protection in vgic_get_lpi() (diff) | |
| download | kernel-50ac89bb709275731217f74da8ccef8c99def319.tar.gz kernel-50ac89bb709275731217f74da8ccef8c99def319.zip | |
KVM: arm64: vgic: Ensure the irq refcount is nonzero when taking a ref
It will soon be possible for get() and put() calls to happen in
parallel, which means in most cases we must ensure the refcount is
nonzero when taking a new reference. Switch to using
vgic_try_get_irq_kref() where necessary, and document the few conditions
where an IRQ's refcount is guaranteed to be nonzero.
Reviewed-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions
