ANDROID: sdcardfs: Hold i_mutex for i_size_write
authorDaniel Rosenberg <drosen@google.com>
Wed, 21 Feb 2018 04:25:45 +0000 (20:25 -0800)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:48 +0000 (18:03 +0200)
commit39ec243eb429ca1e2ccb641bc7e26c74f8b67bae
tree3c5ea9c1958a68198355ea6a8b4537be301b81f8
parentdadf6afe299472c98f666a3a7b3154376ee001df
ANDROID: sdcardfs: Hold i_mutex for i_size_write

When we call i_size_write, we must be holding i_mutex to avoid
possible lockups on 32 bit/SMP architectures. This is not
necessary on 64 bit architectures.

Change-Id: Ic3b946507c54d81b5c9046f9b57d25d4b0f9feef
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 73287721
fs/sdcardfs/file.c