Flatten the main loop
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 1 Feb 2011 21:15:47 +0000 (22:15 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 14 Feb 2011 14:39:44 +0000 (12:39 -0200)
commita92ca0fc80b00efadc43660248280f130d039eeb
treeff9342abfc7b5a0ccaf65edc7681de8c519806cb
parentcf1db46e34757d7d68436cd97ddca0c12fc97a2b
Flatten the main loop

First of all, vm_can_run is a misnomer, it actually means "no request
pending". Moreover, there is no need to check all pending requests
twice, the first time via the inner loop check and then again when
actually processing the requests. We can simply remove the inner loop
and do the checks directly.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
vl.c