diff options
author | Sougata Santra <[email protected]> | 2014-04-03 14:50:34 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-04-03 16:21:26 -0700 |
commit | d7bdb996aef67ea24c62707ca4e29b07025e9683 (patch) | |
tree | 619189c603f5ff8dca0f83880bc38382da61039d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | abfeb724b43f371ea70ec2c1290ed33e6f65db60 (diff) |
fs/hfsplus/extents.c: fix concurrent acess of alloc_blocks
Concurrent access to alloc_blocks in hfsplus_inode_info() is protected
by extents_lock mutex. This patch fixes two instances where
alloc_blocks modification was not protected with this lock.
This fixes possible allocation bitmap corruption in race conditions
while extending and truncating files.
[[email protected]: take extents_lock before taking a copy of ->alloc_blocks]
[[email protected]: remove now-unused label `out']
Signed-off-by: Sougata Santra <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Vyacheslav Dubeyko <[email protected]>
Cc: Alexey Khoroshilov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions