[PATCH] virtio_blk: write back the block cache before resetting the device
Sascha Hauer
s.hauer at pengutronix.de
Fri Aug 28 04:55:43 PDT 2026
On Wed, 26 Aug 2026 11:33:26 +0200, Ahmad Fatoum wrote:
> virtio_blk_remove() resets the virtio device first and unregisters the
> block device afterwards, but that second step is what writes barebox'
> block cache back: blockdevice_unregister() calls writebuffer_flush(),
> which issues ->write() for every dirty chunk and then ->flush(). Both go
> to a device that no longer has a driver-owned virtqueue, so nothing
> answers them.
>
> [...]
Applied, thanks!
[1/1] virtio_blk: write back the block cache before resetting the device
https://git.pengutronix.de/cgit/barebox/commit/?id=fd7d9bf5f3d8 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list