diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2024-02-21 08:42:52 +0300 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-02-24 00:46:02 +0300 |
commit | 50ac89bb709275731217f74da8ccef8c99def319 (patch) | |
tree | e05f78354f8d5b32edf7f6fe364503eaf78c2209 /lib/test-string_helpers.c | |
parent | 864d4304ec1e67b8235e2aae5d31bdad6dd8aa7c (diff) | |
download | linux-50ac89bb709275731217f74da8ccef8c99def319.tar.xz |
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 <maz@kernel.org>
Link: https://lore.kernel.org/r/20240221054253.3848076-10-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions