Re: [RFC PATCH v12 3/3] ocfs2: switch dio write path from buffer_head to iomap
From: Joseph Qi
Date: Thu Nov 26 2026 - 21:11:14 EST
On 11/26/26 11:07 PM, Heming Zhao wrote:
> On 11/26/26 01:05, sashiko-bot@xxxxxxxxxx wrote:
>> Thank you for your contribution! Sashiko AI review found 11 potential
>> issues to consider:
>> - [High] ocfs2: missing fsync tid and i_blocks update in
>> ocfs2_dio_end_io_write()
>> - [High] ocfs2: buffered and mmap writes do not wait in
>> ocfs2_unwritten_check()
>> - [High] ocfs2: ocfs2_dio_cleanup_range() fails on zeroed folios past
>> i_size
>> - [High] ocfs2: missing IOMAP_F_DIRTY in ocfs2_iomap_begin() for
>> uncommitted metadata
>> - [High] ocfs2: orphan entry and block leak on failed or short DIO write
>> - [Medium] ocfs2: overestimated metadata reservation in
>> ocfs2_write_begin_nolock() for DIO
>> - [Medium] ocfs2: per-cluster multi-MB allocation thrashing on ENOSPC in
>> ocfs2_dio_wr_map_blocks()
>> - [Medium] ocfs2: per-cluster w_desc kvcalloc, ip_lock scans, and
>> duplicate lookups in DIO
>> - [Medium] ocfs2: preallocated extents truncated in
>> ocfs2_dio_clear_orphan_locked()
>> - [Medium] ocfs2: stale inode state after lock drop in
>> ocfs2_dio_upgrade_rw_lock()
>> - [Medium] ocfs2: ocfs2_should_use_dio() forces buffered I/O for
>> sub-page DIO overwrites
>> --
>>
>
> It feels like the more code I modified, the more issues I introduced.
> Furthermore, Sashko has started reporting performance issues.
>
I'll take a look this weekend.
And then we discuss and come to an agreement which could be left in this
series.
Thanks,
Joseph