qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-8.0] block/export: fix assume_graph_lock() assertion fail


From: Kevin Wolf
Subject: Re: [PATCH for-8.0] block/export: fix assume_graph_lock() assertion failure
Date: Tue, 28 Mar 2023 14:27:35 +0200

Am 27.03.2023 um 23:19 hat Stefan Hajnoczi geschrieben:
> When I/O request parameters are validated for virtio-blk exports like
> vhost-user-blk and vduse-blk, we call blk_get_geometry() from a
> coroutine. This hits an assume_graph_lock() assertion failure.
> 
> Use blk_co_nb_sectors() instead and mark virtio_blk_sect_range_ok() with
> coroutine_fn.
> 
> This assertion failure is triggered by any I/O to a vhost-user-blk
> export.
> 
> Fixes: 8ab8140a04cf ("block: Mark bdrv_co_refresh_total_sectors() and callers 
> GRAPH_RDLOCK")
> Cc: Kevin Wolf <kwolf@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>

This is a duplicate of this fix:

20230327113959.60071-1-kwolf@redhat.com/">https://patchew.org/QEMU/20230327113959.60071-1-kwolf@redhat.com/

Kevin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]