Searched hist:"33 f2a7577787910bda161f428c904ac6a14b2454" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/block/ |
H A D | block-backend.c | diff 33f2a7577787910bda161f428c904ac6a14b2454 Fri Feb 16 10:50:13 CST 2018 Stefan Hajnoczi <stefanha@redhat.com> block: add BlockBackend->in_flight counter
BlockBackend currently relies on BlockDriverState->in_flight to track requests for blk_drain(). There is a corner case where BlockDriverState->in_flight cannot be used though: blk->root can be NULL when there is no medium. This results in a segfault when the NULL pointer is dereferenced.
Introduce a BlockBackend->in_flight counter for aio requests so it works even when blk->root == NULL.
Based on a patch by Kevin Wolf <kwolf@redhat.com>.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
/openbmc/qemu/ |
H A D | block.c | diff 33f2a7577787910bda161f428c904ac6a14b2454 Fri Feb 16 10:50:13 CST 2018 Stefan Hajnoczi <stefanha@redhat.com> block: add BlockBackend->in_flight counter
BlockBackend currently relies on BlockDriverState->in_flight to track requests for blk_drain(). There is a corner case where BlockDriverState->in_flight cannot be used though: blk->root can be NULL when there is no medium. This results in a segfault when the NULL pointer is dereferenced.
Introduce a BlockBackend->in_flight counter for aio requests so it works even when blk->root == NULL.
Based on a patch by Kevin Wolf <kwolf@redhat.com>.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|