diff options
author | Peter Lieven <pl@kamp.de> | 2013-12-14 17:31:40 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-12-16 11:25:51 +0100 |
commit | 8b9dfe9098d91e06a3dd6376624307fe5fa13be8 (patch) | |
tree | 9802b09cee15c53db368e5351bc0a9055a45433d /pc-bios | |
parent | e157b8fdd412d48eacfbb8c67d3d58780154faa3 (diff) | |
download | qemu-8b9dfe9098d91e06a3dd6376624307fe5fa13be8.zip |
block/iscsi: use a bh to schedule co reentrance
this fixes a potential segfault and performance regression.
If the coroutine is reentered directly in the iscsi_co_generic_cb
iscsi_process_{read,write} are interrupted and reentered any
time later. One the one hand this could happen after an iscsi_close
where the iscsi context is already gone (segfault). On the
other hand this limits the number of processed callbacks
in each aio_dispatch to one (potential performance regression).
Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'pc-bios')
0 files changed, 0 insertions, 0 deletions