Re: Q: fsync on a blockdev fd worked in 5.15, but no longer does. Should it?

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

 



On 2022-06-02 07:59, Christoph Hellwig wrote:
On Wed, Jun 01, 2022 at 10:19:40PM +0200, Holger Hoffstätte wrote:
Obviously if anybody (Jens, Christoph..?) has an idea what changed this
behaviour and thinks it's a bug I'm more than happy to test a fix,
however for now I'd be happy to understand what's going on.

I just tested fsync on SCSI disk and NVMe SSDs and they make it down
perfectly fine to the driver and device as Synchronize Cache / Flush
commands, including the block device node for a partition.

Everything else would be really horrible for data integrity anyway..

Thanks for confirming. Unfortunately that still doesn't explain
why dirty buffers now keep accumulating, but whatever.
In the meantime I found a much less intrusive solution (hd-idle) that
just monitors /proc/diskstats for selected devices instead of trying
to replace periodic writeback wholesale.

cheers
Holger



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux