diff options
author | Tao Ma <[email protected]> | 2011-08-13 12:30:59 -0400 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2011-08-13 12:30:59 -0400 |
commit | 32c80b32c053dc52712dedac5e4d0aa7c93fc353 (patch) | |
tree | 857375faae2d6c562741d14ed13a1411b197baf5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 2581fdc810889fdea97689cb62481201d579c796 (diff) |
ext4: Resolve the hang of direct i/o read in handling EXT4_IO_END_UNWRITTEN.
EXT4_IO_END_UNWRITTEN flag set and the increase of i_aiodio_unwritten
should be done simultaneously since ext4_end_io_nolock always clear
the flag and decrease the counter in the same time.
We don't increase i_aiodio_unwritten when setting
EXT4_IO_END_UNWRITTEN so it will go nagative and causes some process
to wait forever.
Part of the patch came from Eric in his e-mail, but it doesn't fix the
problem met by Michael actually.
http://marc.info/?l=linux-ext4&m=131316851417460&w=2
Reported-and-Tested-by: Michael Tokarev<[email protected]>
Signed-off-by: Eric Sandeen <[email protected]>
Signed-off-by: Tao Ma <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions