qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH Resend] block/quorum: Provide .bdrv_co_flush instead of .bdrv


From: Kevin Wolf
Subject: Re: [PATCH Resend] block/quorum: Provide .bdrv_co_flush instead of .bdrv_co_flush_to_disk
Date: Tue, 18 May 2021 15:17:32 +0200

Am 18.05.2021 um 13:42 hat Lukas Straub geschrieben:
> The quorum block driver uses a custom flush callback to handle the
> case when some children return io errors. In that case it still
> returns success if enough children are healthy.
> However, it provides it as the .bdrv_co_flush_to_disk callback, not
> as .bdrv_co_flush. This causes the block layer to do it's own
> generic flushing for the children instead, which doesn't handle
> errors properly.
> 
> Fix this by providing .bdrv_co_flush instead of
> .bdrv_co_flush_to_disk so the block layer uses the custom flush
> callback.
> 
> Signed-off-by: Lukas Straub <lukasstraub2@web.de>
> Reported-by: Minghao Yuan <meeho@qq.com>

Thanks, applied to the block branch.

Kevin

Attachment: signature.asc
Description: PGP signature


reply via email to

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