https://github.com/torvalds/linux
Revision 13a79a4741d37fda2fbafb953f0f301dc007928f authored by Yongqiang Yang on 14 December 2011, 02:51:55 UTC, committed by Theodore Ts'o on 14 December 2011, 02:51:55 UTC
If there is an unwritten but clean buffer in a page and there is a
dirty buffer after the buffer, then mpage_submit_io does not write the
dirty buffer out.  As a result, da_writepages loops forever.

This patch fixes the problem by checking dirty flag.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
1 parent ea51d13
History
Tip revision: 13a79a4741d37fda2fbafb953f0f301dc007928f authored by Yongqiang Yang on 14 December 2011, 02:51:55 UTC
ext4: avoid potential hang in mpage_submit_io() when blocksize < pagesize
Tip revision: 13a79a4
File Mode Size
Makefile -rw-r--r-- 145 bytes
core.c -rw-r--r-- 163.5 KB
hw_breakpoint.c -rw-r--r-- 15.5 KB
internal.h -rw-r--r-- 2.3 KB
ring_buffer.c -rw-r--r-- 7.8 KB

back to top