Re: [f2fs-dev] [PATCH] f2fs: fix submit accounting for IPU writeback
From: Jaegeuk Kim
Date: Mon Oct 19 2026 - 12:28:24 EST
On 10/19, Chao Yu via Linux-f2fs-devel wrote:
> On 10/14/26 19:26, Seongjae Jeong wrote:
> > f2fs_write_cache_pages() uses the submitted count, which is set to
> > fio.submitted in f2fs_write_single_data_page(), to update nwritten
> > and decrement wbc->nr_to_write.
> >
> > In the OPU path, f2fs_submit_page_write() sets fio->submitted to 1.
> > However, in the IPU path, fio->submitted is never set and remains zero.
> > As a result, successful IPU writes are not accounted for.
> > This can cause asynchronous writeback to continue beyond its budget.
> >
> > Set fio->submitted in f2fs_inplace_write_data() after a page is
> > successfully merged into a bio or submitted, so that successful
> > IPU writes are included in the writeback accounting.
> >
>
> Missing Fixes and Cc stable line?
Cc: stable@xxxxxxxxxx
Fixes: d68f735b3bc9 ("f2fs: check io submission more precisely")
>
> > Signed-off-by: Seongjae Jeong <jsjlee1020@xxxxxxxxx>
> Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
>
> Thanks,
>
>
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel