diff options
-rw-r--r-- | virt/kvm/eventfd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index 2ca4535f4fb7..3656849f78a0 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c | |||
@@ -313,8 +313,9 @@ kvm_irqfd_deassign(struct kvm *kvm, int fd, int gsi) | |||
313 | if (irqfd->eventfd == eventfd && irqfd->gsi == gsi) { | 313 | if (irqfd->eventfd == eventfd && irqfd->gsi == gsi) { |
314 | /* | 314 | /* |
315 | * This rcu_assign_pointer is needed for when | 315 | * This rcu_assign_pointer is needed for when |
316 | * another thread calls kvm_irqfd_update before | 316 | * another thread calls kvm_irq_routing_update before |
317 | * we flush workqueue below. | 317 | * we flush workqueue below (we synchronize with |
318 | * kvm_irq_routing_update using irqfds.lock). | ||
318 | * It is paired with synchronize_rcu done by caller | 319 | * It is paired with synchronize_rcu done by caller |
319 | * of that function. | 320 | * of that function. |
320 | */ | 321 | */ |