android_kernel_oneplus_msm8998/fs/fuse
Nikhilesh Reddy 6ec3ca7f43 fuse: Grab the fc->lock for inode updates in passthrough
The function fsstack_copy_inode_size uses the inode->i_lock to
serialize the inode updates. This lock is not used in the FUSE
filesystem and thus it is not enough to just grab this lock
before updating a FUSE inode.

Grab the fc->lock for inode updates in passthrough to ensure
that there are no races between inode size updates in 32 bit
architectures with SMP.

Change-Id: I83cb2380b6ca56768c06e70ef1bf9ea3976b514a
Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org>
2016-09-20 13:52:51 -07:00
..
control.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
cuse.c fuse: Add reference counting for fuse_io_priv 2016-04-12 09:08:58 -07:00
dev.c fuse: Add support for passthrough read/write 2016-03-22 11:15:47 -07:00
dir.c fuse: Add support for passthrough read/write 2016-03-22 11:15:47 -07:00
file.c Merge remote-tracking branch 'msm-4.4/tmp-2bf7955' into msm-4.4 2016-07-22 16:45:32 -07:00
fuse_i.h Merge remote-tracking branch 'msm-4.4/tmp-2bf7955' into msm-4.4 2016-07-22 16:45:32 -07:00
fuse_passthrough.h fuse: Add support for passthrough read/write 2016-03-22 11:15:47 -07:00
inode.c fuse: Add support for passthrough read/write 2016-03-22 11:15:47 -07:00
Kconfig fuse: Move CUSE Kconfig entry from fs/Kconfig into fs/fuse/Kconfig 2013-01-17 13:08:45 +01:00
Makefile fuse: Add support for passthrough read/write 2016-03-22 11:15:47 -07:00
passthrough.c fuse: Grab the fc->lock for inode updates in passthrough 2016-09-20 13:52:51 -07:00