[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/3] block: fix blk_aio_*() segfault when blk->root
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 0/3] block: fix blk_aio_*() segfault when blk->root == NULL |
Date: |
Thu, 8 Feb 2018 17:18:04 +0000 |
Using bdrv_inc_in_flight(blk_bs(blk)) doesn't work since BlockBackend->root may
be NULL.
This patch series solves the issue by adding an BlockBackend->in_flight counter
so requests can be tracked even when there is no BlockDriverState.
This should fix the IDE and virtio-blk segfaults that have been encountered
when there is no BlockDriverState.
The patch is based on work by Kevin Wolf.
Kevin Wolf (1):
block: test blk_aio_flush() with blk->root == NULL
Stefan Hajnoczi (2):
block: add BlockBackend->in_flight counter
Revert "IDE: Do not flush empty CDROM drives"
tests/Makefile.include | 2 ++
block.c | 2 +-
block/block-backend.c | 59 +++++++++++++++++++++++++++++----
hw/ide/core.c | 10 +-----
tests/test-block-backend.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 138 insertions(+), 17 deletions(-)
create mode 100644 tests/test-block-backend.c
--
2.14.3
- [Qemu-devel] [PATCH 0/3] block: fix blk_aio_*() segfault when blk->root == NULL,
Stefan Hajnoczi <=