Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6d17008 authored by Nikhilesh Reddy's avatar Nikhilesh Reddy
Browse files

fuse: Grab the fc->lock for inode updates in shortcircuit



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 shortcircuit to ensure
that there are no races between inode size updates in 32 bit
architectures with SMP.

Change-Id: I83cb2380b6ca56768c06e70ef1bf9ea3976b514a
Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent 338e6cc3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment