[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH 0/3] do not use aio_context_acquire/release in AIO-b
From: |
Paolo Bonzini |
Subject: |
[Qemu-block] [PATCH 0/3] do not use aio_context_acquire/release in AIO-based drivers |
Date: |
Fri, 17 Feb 2017 20:40:25 +0100 |
aio_context_acquire/release are only going away as soon as the block layer
becomes thread-safe, but we can already move away to other finer-grained
mutex whenever possible.
These three drivers don't use coroutines, hence a QemuMutex is a fine
primitive to use for protecting any per-BDS data in the libraries
they use. The QemuMutex must protect any fd handlers or bottom halves,
and also the BlockDriver callbacks which were implicitly being called
under aio_context_acquire.
Paolo
Paolo Bonzini (3):
curl: do not use aio_context_acquire/release
nfs: do not use aio_context_acquire/release
iscsi: do not use aio_context_acquire/release
block/curl.c | 24 ++++++++++-------
block/iscsi.c | 83 +++++++++++++++++++++++++++++++++++++++++++++--------------
block/nfs.c | 20 +++++++++++---
3 files changed, 95 insertions(+), 32 deletions(-)
--
2.9.3
- [Qemu-block] [PATCH 0/3] do not use aio_context_acquire/release in AIO-based drivers,
Paolo Bonzini <=