From: Heming Zhao <heming.zhao@suse.com>
To: Joseph Qi <joseph.qi@linux.alibaba.com>, sashiko-reviews@lists.linux.dev
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>,
Christoph Hellwig <hch@lst.de>
Subject: Re: [RFC PATCH v12 3/3] ocfs2: switch dio write path from buffer_head to iomap
Date: Fri, 27 Nov 2026 11:30:42 +0800 [thread overview]
Message-ID: <97e7fc50-80ff-4c73-a3a2-7e09c9d8849c@suse.com> (raw)
In-Reply-To: <843bc832-5731-4f06-835c-9594c53a4cd1@linux.alibaba.com>
On 11/27/26 10:11, Joseph Qi wrote:
>
>
> On 11/26/26 11:07 PM, Heming Zhao wrote:
>> On 11/26/26 01:05, sashiko-bot@kernel.org 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
>
>
I will send v12.1 for fixing following issues:
- [High] ocfs2: missing fsync tid and i_blocks update in
ocfs2_dio_end_io_write()
- [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
- [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: stale inode state after lock drop in
ocfs2_dio_upgrade_rw_lock()
After v12.1, I will stop fixing bugs/issues until we discuss what to do next.
Thanks,
Heming
prev parent reply other threads:[~2026-11-27 3:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 15:46 [RFC PATCH v12 0/3] migrate ocfs2 DIO " Heming Zhao
2026-11-25 15:46 ` [RFC PATCH v12 1/3] ocfs2: Add new ocfs2_map_blocks() to introduce iomap feature Heming Zhao
2026-11-25 15:46 ` [RFC PATCH v12 2/3] ocfs2: switch DIO read path from buffer_head to iomap Heming Zhao
2026-11-25 15:46 ` [RFC PATCH v12 3/3] ocfs2: switch dio write " Heming Zhao
[not found] ` <sashiko-outbox-233793@kernel.org>
2026-11-26 15:07 ` Heming Zhao
2026-11-27 2:11 ` Joseph Qi
2026-11-27 3:30 ` Heming Zhao [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=97e7fc50-80ff-4c73-a3a2-7e09c9d8849c@suse.com \
--to=heming.zhao@suse.com \
--cc=hch@lst.de \
--cc=jlbec@evilplan.org \
--cc=joseph.qi@linux.alibaba.com \
--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®