]> git.karo-electronics.de Git - linux-beck.git/commit
kvm/eventfd: avoid loop inside irqfd_update()
authorAndrey Smetanin <asmetanin@virtuozzo.com>
Fri, 16 Oct 2015 07:07:45 +0000 (10:07 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Oct 2015 08:34:28 +0000 (10:34 +0200)
commit351dc6477cd35136ce4668401b1b1332a62908a8
tree909d643640eeb91f7312572074681d915138febc
parent7cae2bedcbd4680b155999655e49c27b9cf020fa
kvm/eventfd: avoid loop inside irqfd_update()

The loop(for) inside irqfd_update() is unnecessary
because any other value for irq_entry.type will just trigger
schedule_work(&irqfd->inject) in irqfd_wakeup.

Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
CC: "K. Y. Srinivasan" <kys@microsoft.com>
CC: Gleb Natapov <gleb@kernel.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/eventfd.c