Re: [PATCH v18 00/10] migrate ocfs2 DIO from buffer_head to iomap
From: Joseph Qi
Date: Sat Dec 05 2026 - 19:51:49 EST
On 12/5/26 11:17 PM, sashiko-bot@xxxxxxxxxx wrote:
> Sashiko has finished reviewing this 10-patch series:
>
> - Patches 1-5: no issues found.
> - Patch 6 ("ocfs2: rework the direct write context for multi-clu..."): 3
> potential issues (1 Medium, 2 Low)
The 1 Medium finding:
O(w_clen·M) ip_lock scan in populate_write_desc, deferred performance improving.
> - Patch 7 ("ocfs2: switch dio write path from buffer_head to iomap"): 9
> potential issues (4 High, 4 Medium, 1 Low)
The 4 High findings:
unlocked page truncation race in wr_map_blocks, described in limitation 1.
unlocked truncate_inode_pages_range in cleanup_range, also described in limitation 1.
iomap_begin checks i_datasync_tid before mapping, seems false postive.
stranded OCFS2_DIO_ORPHANED_FL, described in limitation 2.
The 4 Medium findings:
unaligned/short range in cleanup_clusters, described in limitation 1.
order-5 kvcalloc churn / O(N²) scans, described in limitation 3.
redundant sync/journal commit on IS_SYNC DIO, pre-existing performance issue.
unbounded upfront prefault under EX locks, deferred fix in follow-ups.
> - Patch 8 ("ocfs2: keep sub-page overwrites of written blocks on..."): 4
> potential issues (1 High, 2 Medium, 1 Low)
The 1 High finding:
subpage probe maps blocks without inode lock, seems false postive.
The 2 Medium findings:
probe uses PAGE_SIZE over s_clustersize, deffered cleanup.
probe clamps map.len / over-probes ends, deffered cleanup.
> - Patch 9 ("ocfs2: write the dio zeroed head/tail buffers out be..."): 4
> potential issues (1 High, 3 Medium)
The 1 High finding:
AB-BA deadlock write_zero_folios vs mpage_writepages, seems false postive.
The 3 Medium findings:
waits on I/O under JBD2 handle and locks, by design.
one 1-bvec bio per buffer_head, deffered cleanup.
redundant jbd2_inode_add_write per folio, deffered cleanup.
> - Patch 10 ("ocfs2: make buffered writes wait for in-flight direc..."):
> 2 potential issues (1 Medium, 1 Low)
>
The 1 Medium finding:
per-page ip_unwritten_list scan in write_begin, deffered cleanup.
> Detailed reviews have been sent as separate replies to patches 6-10.
>
In summary, the left high findings are all known limitations. And for some
medium findings, we'll fix them in follow-ups.
So let's get this series into linux-next for testing. And I'd like this is
a candidate for the upcoming 7.5-rc1.
Thanks,
Joseph