summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorNanzhe Zhao <nzzhao@126.com>2026-01-05 23:30:58 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2026-01-07 03:17:08 +0000
commitc0c589fa1d17fc13b3be1a4dd2ec62266c2a0659 (patch)
treedf6a4db4f5a3ab1fa28ee7cc58f2c9161875614a /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent00feea1dfcea2cc7c22e58b6325f72637c6ea217 (diff)
f2fs: Accounting large folio subpages before bio submission
In f2fs_read_data_large_folio(), read_pages_pending is incremented only after the subpage has been added to the BIO. With a heavily fragmented file, each new subpage can force submission of the previous BIO. If the BIO completes quickly, f2fs_finish_read_bio() may decrement read_pages_pending to zero and call folio_end_read() while the read loop is still processing other subpages of the same large folio. Fix the ordering by incrementing read_pages_pending before any possible BIO submission for the current subpage, matching the iomap ordering and preventing premature folio_end_read(). Signed-off-by: Nanzhe Zhao <nzzhao@126.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions