summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWenjie Qi <qiwenjie@xiaomi.com>2026-05-20 12:52:04 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2026-06-22 22:52:35 +0300
commit74c8d2ec95c59a5651ecd975c466998af1961fd4 (patch)
treec92c4b1cef3cbabbbbe253ba26adb9f6ee459ef0 /scripts
parente0288584baa5dc41df4a829a023c4c1b33fe53d7 (diff)
downloadlinux-74c8d2ec95c59a5651ecd975c466998af1961fd4.tar.xz
f2fs: fix missing read bio submission on large folio error
f2fs_read_data_large_folio() can keep a read bio across multiple readahead folios. If a later folio hits an error before any of its blocks are added to the bio, folio_in_bio is false and the current error path returns immediately after ending that folio. This can leave the bio accumulated for earlier folios unsubmitted. Those folios then never receive read completion, and readers can wait indefinitely on the locked folios. Route errors through the common out path so any pending bio is submitted before returning. Stop consuming more readahead folios once an error is seen, and only wait on and clear the current folio when it was actually added to the bio. Cc: stable@kernel.org Fixes: a5d8b9d94e18 ("f2fs: fix to unlock folio in f2fs_read_data_large_folio()") Signed-off-by: Wenjie Qi <qiwenjie@xiaomi.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions