diff options
author | 2014-04-21 14:37:52 -0400 | |
---|---|---|
committer | 2014-04-21 14:37:52 -0400 | |
commit | f5ccfe1ddbaf9d923a3ebdadcb1e5e32d83e9c28 (patch) | |
tree | f79ae8f5ac9b34cbb3cb73f14f9706905219aa6b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ext4: factor out common code in ext4_file_write() (diff) | |
download | linux-dev-f5ccfe1ddbaf9d923a3ebdadcb1e5e32d83e9c28.tar.xz linux-dev-f5ccfe1ddbaf9d923a3ebdadcb1e5e32d83e9c28.zip |
ext4: fix locking for O_APPEND writes
Al Viro pointed out that locking for O_APPEND writes was problematic,
since the location of the write isn't known until after we take the
i_mutex, which impacts the ext4_unaligned_aio() and s_bitmap_maxbytes
check.
For O_APPEND always assume that the write is unaligned so call
ext4_unwritten_wait(). And to solve the second problem, take the
i_mutex earlier before we start the s_bitmap_maxbytes check.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions