Commit 2266fe58 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Greg Kroah-Hartman
Browse files

ext4: pipeline buffer reads in mext_page_mkuptodate()



[ Upstream commit 368a83ce ]

Instead of synchronously reading one buffer at a time, submit reads
as we walk the buffers in the first loop, then wait for them in the
second loop.  This should be significantly more efficient, particularly
on HDDs, but I have not measured.

Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Link: https://patch.msgid.link/20240718223005.568869-2-willy@infradead.org


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Stable-dep-of: 2f3d93e2 ("ext4: fix race in buffer_head read fault injection")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fbd359a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment