mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joseph Qi <joseph.qi@linux.alibaba.com>
To: sashiko-reviews@lists.linux.dev,
	Andrew Morton <akpm@linux-foundation.org>,
	Heming Zhao <heming.zhao@suse.com>,
	Christoph Hellwig <hch@lst.de>
Cc: Mark Fasheh <mark@fasheh.com>, Joel Becker <jlbec@evilplan.org>,
	"ocfs2-devel@lists.linux.dev" <ocfs2-devel@lists.linux.dev>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v18 00/10] migrate ocfs2 DIO from buffer_head to iomap
Date: Sun, 6 Dec 2026 08:51:37 +0800	[thread overview]
Message-ID: <bda4aac9-5b86-4cfc-a9f3-99ba4a461aa9@linux.alibaba.com> (raw)
In-Reply-To: <sashiko-outbox-251683@kernel.org>



On 12/5/26 11:17 PM, sashiko-bot@kernel.org 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

      parent reply	other threads:[~2026-12-06  0:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 14:39 Joseph Qi
2026-12-05 14:39 ` [PATCH v18 01/10] ocfs2: Add new ocfs2_map_blocks() to introduce iomap feature Joseph Qi
2026-12-05 14:39 ` [PATCH v18 02/10] ocfs2: switch DIO read path from buffer_head to iomap Joseph Qi
2026-12-05 14:39 ` [PATCH v18 03/10] ocfs2: add ocfs2_get_clusters_uncached() Joseph Qi
2026-12-05 14:39 ` [PATCH v18 04/10] ocfs2: refactor ocfs2_lock_allocators() and add a dio variant Joseph Qi
2026-12-05 14:39 ` [PATCH v18 05/10] ocfs2: record the fsync transaction when CoW makes clusters writable Joseph Qi
2026-12-05 14:39 ` [PATCH v18 06/10] ocfs2: rework the direct write context for multi-cluster mappings Joseph Qi
2026-12-05 14:39 ` [PATCH v18 07/10] ocfs2: switch dio write path from buffer_head to iomap Joseph Qi
2026-12-05 14:39 ` [PATCH v18 08/10] ocfs2: keep sub-page overwrites of written blocks on direct I/O Joseph Qi
2026-12-05 14:39 ` [PATCH v18 09/10] ocfs2: write the dio zeroed head/tail buffers out before completion Joseph Qi
2026-12-05 14:39 ` [PATCH v18 10/10] ocfs2: make buffered writes wait for in-flight direct writes Joseph Qi
     [not found] ` <sashiko-outbox-251683@kernel.org>
2026-12-06  0:51   ` Joseph Qi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bda4aac9-5b86-4cfc-a9f3-99ba4a461aa9@linux.alibaba.com \
    --to=joseph.qi@linux.alibaba.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@lst.de \
    --cc=heming.zhao@suse.com \
    --cc=jlbec@evilplan.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark@fasheh.com \
    --cc=ocfs2-devel@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®