summaryrefslogtreecommitdiffstats
path: root/Documentation/smsc_ece1099.txt
diff options
context:
space:
mode:
authorSougata Santra <sougata@tuxera.com>2014-04-03 14:50:34 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 16:21:26 -0700
commitd7bdb996aef67ea24c62707ca4e29b07025e9683 (patch)
tree619189c603f5ff8dca0f83880bc38382da61039d /Documentation/smsc_ece1099.txt
parentabfeb724b43f371ea70ec2c1290ed33e6f65db60 (diff)
downloadblackbird-op-linux-d7bdb996aef67ea24c62707ca4e29b07025e9683.tar.gz
blackbird-op-linux-d7bdb996aef67ea24c62707ca4e29b07025e9683.zip
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. [akpm@linux-foundation.org: take extents_lock before taking a copy of ->alloc_blocks] [akpm@linux-foundation.org: remove now-unused label `out'] Signed-off-by: Sougata Santra <sougata@tuxera.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Vyacheslav Dubeyko <slava@dubeyko.com> Cc: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/smsc_ece1099.txt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud