]> www.infradead.org Git - users/dwmw2/qemu.git/commit
iscsi: do not use aio_context_acquire/release
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Feb 2017 18:07:25 +0000 (19:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 27 Feb 2017 13:58:58 +0000 (13:58 +0000)
commitd045c466d9e62b4321fadf586d024d54ddfd8bd4
tree28a1feb72c72118dd52012675d7d35a623a5f71d
parent37d1e4d9bfac846a1331375aab3d13b54a048c01
iscsi: do not use aio_context_acquire/release

Now that all bottom halves and callbacks take care of taking the
AioContext lock, we can migrate some users away from it and to a
specific QemuMutex or CoMutex.

Protect libiscsi calls with a QemuMutex.  Callbacks are invoked
using bottom halves, so we don't even have to drop it around
callback invocations.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20170222180725.28611-4-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/iscsi.c