]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: initialize the threadpool job iterator before using
authorSasha Levin <levinsasha928@gmail.com>
Mon, 17 Sep 2012 08:03:33 +0000 (10:03 +0200)
committerPekka Enberg <penberg@kernel.org>
Tue, 18 Sep 2012 07:17:47 +0000 (10:17 +0300)
commit3ba787ae82f6e35f5daec781c16366746c750b44
tree8251a8fec8d2656037cf4739ff0cd570a78ba214
parente36e90124cd7de6911218b15ae090574e1c0c6e0
kvm tools: initialize the threadpool job iterator before using

This would fix a bug where the exit function of the threadpool would hang
if no jobs were processed yet and a request to exit was received.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/util/threadpool.c