nfs: do not use aio_context_acquire/release
commit37d1e4d9bfac846a1331375aab3d13b54a048c01
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Feb 2017 18:07:24 +0000 (22 19:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 27 Feb 2017 13:58:53 +0000 (27 13:58 +0000)
treefdcab21a0004fd02b36fa8050a1cde5530b5384b
parentba3186c4e473963ba83b5792f3d02d4ac0a76ba5
nfs: 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 libnfs calls with a QemuMutex.  Callbacks are invoked
using bottom halves, so we don't even have to drop it around
callback invocations.

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