diff options
| author | Paolo Bonzini | 2014-12-11 14:52:27 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2014-12-12 17:57:55 +0100 |
| commit | 43f2376e096382df44d9322ae0cbdca89612d464 (patch) | |
| tree | 7224c96c9665c21d4f3e87c8bf950867c4663e90 /scripts | |
| parent | linux-aio: queue requests that cannot be submitted (diff) | |
| download | qemu-43f2376e096382df44d9322ae0cbdca89612d464.tar.gz qemu-43f2376e096382df44d9322ae0cbdca89612d464.tar.xz qemu-43f2376e096382df44d9322ae0cbdca89612d464.zip | |
linux-aio: track whether the queue is blocked
Avoid that unplug submits requests when io_submit reported that it
couldn't accept more; at the same time, try more io_submit calls if it
could handle the whole set of requests that were passed, so that the
"blocked" flag is reset as soon as possible.
After the previous patch, laio_submit already tried to avoid submitting
requests to a blocked queue, by comparing s->io_q.idx with "==" instead
of the more natural ">=". Switch to the simpler expression now that we
have the "blocked" flag.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1418305950-30924-3-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
