[PATCH] KVM: eventfd: Remove redundant synchronize_srcu_expedited from irqfd assignment

From: lirongqing

Date: Mon Mar 09 2026 - 05:22:08 EST


From: Li RongQing <lirongqing@xxxxxxxxx>

The synchronize_srcu_expedited() call in kvm_irqfd_assign() is unnecessary
when adding a new irqfd to the resampler list. The list insertion is
already RCU-safe, and existing readers will either see the old or the
updated list without inconsistency. Removing this call reduces latency
during resampling irqfd setup.

Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
---
virt/kvm/eventfd.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c
index 3201f60..facfeab 100644
--- a/virt/kvm/eventfd.c
+++ b/virt/kvm/eventfd.c
@@ -450,7 +450,6 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args)
}

list_add_rcu(&irqfd->resampler_link, &irqfd->resampler->list);
- synchronize_srcu_expedited(&kvm->irq_srcu);

mutex_unlock(&kvm->irqfds.resampler_lock);
}
--
2.9.4