]> git.proxmox.com Git - mirror_qemu.git/commit - util/thread-pool.c
thread-pool: avoid per-thread-pool EventNotifier
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 15 Jul 2014 14:44:25 +0000 (16:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Aug 2014 13:07:14 +0000 (15:07 +0200)
commitc2e50e3d11a0bf4c973cc30478c1af0f2d5f8e81
tree1a825a1c605343e093dde7b3db50530fa25518cf
parent2a87151fb2725658f7419038a80f91065159f34b
thread-pool: avoid per-thread-pool EventNotifier

EventNotifier is implemented using an eventfd or pipe.  It therefore
consumes file descriptors, which can be limited by rlimits and should
therefore be used sparingly.

Switch from EventNotifier to QEMUBH in thread-pool.c.  Originally
EventNotifier was used because qemu_bh_schedule() was not thread-safe
yet.

Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
thread-pool.c