]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
zloop: advertise a volatile write cache
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Feb 2026 14:21:44 +0000 (06:21 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Feb 2026 21:50:18 +0000 (14:50 -0700)
commit6acf7860dcc79ed045cc9e6a79c8a8bb6959dba7
treefdb9b328c3324dd3c9d0595f0f60ebf6a864e682
parent0d195d3b205ca90db30d70d09d7bb6909aac178f
zloop: advertise a volatile write cache

Zloop is file system backed and thus needs to sync the underlying file
system to persist data.  Set BLK_FEAT_WRITE_CACHE so that the block
layer actually send flush commands, and fix the flush implementation
as sync_filesystem requires s_umount to be held and the code currently
misses that.

Fixes: eb0570c7df23 ("block: new zoned loop block device driver")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/zloop.c