Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 16b1fe2c authored by Dmitry Monakhov's avatar Dmitry Monakhov Committed by Alex Shi
Browse files

ext4: convert write_begin methods to stable_page_writes semantics


Use wait_for_stable_page() instead of wait_on_page_writeback()

Huawei engineer Jianfeng report that without this patch, the consequence
write may cause seconds to finish.

The patch helps because most of storage today doesn't require that the
page isn't changed while IO is in flight. That is required only for
data checksumming or copy-on-write semantics but ext4 does neither of
those. So we don't have to wait for IO completion in ext4_write_begin()
unless underlying storage requires it.

							--Honza

Signed-off-by: default avatarDmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
(cherry picked from commit 7afe5aa5)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent b775702b
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment