[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v2 00/14] block jobs: Convert I/O to BlockBackend
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PATCH v2 00/14] block jobs: Convert I/O to BlockBackend |
Date: |
Tue, 24 May 2016 15:47:20 +0200 |
This series changes the block jobs so that they have a separate BlockBackend
for every node on which they perform I/O. This doesn't only get us closer to
the goal of only doing I/O through blk_*() from external sources (and block
jobs are considered external), but can also later be used to use BlockBackend
features for jobs: One could imagine replacing the very basic job throttling by
the already existing and more advanced BlockBackend throttling, or using the
BlockBackend error handling for block jobs.
This depends on my current block branch (because of the drain fixes).
v2:
- Rebase conflict resolution, in particular:
* bdrv_new() without parameter
* blk_*write_zeroes() is sector based now
- Assert that all BDSes are gone after bdrv_close_all [Max, Berto]
- Don't add new sector based blk_* interfaces. Instead, blk_co_preadv/pwritev
are made public. [Max]
- commit: Removed unnecessary cast [Max]
- commit: Use blk_* functions in commit_run() [Max]
Alberto Garcia (1):
block: keep a list of block jobs
John Snow (1):
backup: Pack Notifier within BackupBlockJob
Kevin Wolf (12):
block: Cancel jobs first in bdrv_close_all()
block: Default to enabled write cache in blk_new()
block: Convert block job core to BlockBackend
block: Make blk_co_preadv/pwritev() public
stream: Use BlockBackend for I/O
mirror: Allow target that already has a BlockBackend
mirror: Use BlockBackend for I/O
backup: Don't leak BackupBlockJob in error path
backup: Remove bs parameter from backup_do_cow()
backup: Use BlockBackend for I/O
commit: Use BlockBackend for I/O
blockjob: Remove BlockJob.bs
block.c | 23 +--------
block/backup.c | 71 ++++++++++++++--------------
block/block-backend.c | 24 ++++++----
block/commit.c | 53 +++++++++++++--------
block/io.c | 18 -------
block/mirror.c | 104 +++++++++++++++++++----------------------
block/stream.c | 15 +++---
blockdev.c | 12 +----
blockjob.c | 62 +++++++++++++++++-------
include/block/block.h | 4 --
include/block/blockjob.h | 23 ++++++++-
include/sysemu/block-backend.h | 6 +++
qemu-img.c | 2 +-
tests/qemu-iotests/041 | 27 -----------
tests/qemu-iotests/041.out | 4 +-
trace-events | 6 ++-
16 files changed, 224 insertions(+), 230 deletions(-)
--
1.8.3.1
- [Qemu-block] [PATCH v2 00/14] block jobs: Convert I/O to BlockBackend,
Kevin Wolf <=