]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Don't dynamically allocate threadpool jobs
authorSasha Levin <levinsasha928@gmail.com>
Sat, 2 Jul 2011 23:52:03 +0000 (19:52 -0400)
committerPekka Enberg <penberg@kernel.org>
Sat, 2 Jul 2011 10:07:43 +0000 (13:07 +0300)
commit709ebb13b98596b807558dcd0243850957f1b290
tree5ec13ab767ef9f611ddc4418a5a895ca998c0ada
parentd49c968065a90afd393d8c452ed29441ed274090
kvm tools: Don't dynamically allocate threadpool jobs

To allow efficient use of shorter-term threadpool jobs, don't
allocate them dynamically upon creation. Instead, store them
within 'job' structures.

This will prevent some overhead creating/destroying jobs which live
for a short time.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/threadpool.h
tools/kvm/include/kvm/virtio-9p.h
tools/kvm/threadpool.c
tools/kvm/virtio/9p.c
tools/kvm/virtio/blk.c
tools/kvm/virtio/console.c
tools/kvm/virtio/rng.c