summaryrefslogtreecommitdiff
path: root/fs/fat/namei_vfat.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-12-18 06:25:31 -0500
committerJeff Layton <jlayton@redhat.com>2018-01-29 06:42:20 -0500
commit7594c461161745f0d38a4346d4f895e0837b8094 (patch)
treeb1469f3097ad6116405bb7a014c097c59ad947b2 /fs/fat/namei_vfat.c
parentae5e165d855dd978a461b22175531b07f54fb61f (diff)
fs: don't take the i_lock in inode_inc_iversion
The rationale for taking the i_lock when incrementing this value is lost in antiquity. The readers of the field don't take it (at least not universally), so my assumption is that it was only done here to serialize incrementors. If that is indeed the case, then we can drop the i_lock from this codepath and treat it as a atomic64_t for the purposes of incrementing it. This allows us to use inode_inc_iversion without any danger of lock inversion. Note that the read side is not fetched atomically with this change. The assumption here is that that is not a critical issue since the i_version is not fully synchronized with anything else anyway. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/fat/namei_vfat.c')
0 files changed, 0 insertions, 0 deletions