]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: use invalidate_lock to check the state of mmap_lock
authorKaixu Xia <kaixuxia@tencent.com>
Sun, 19 Jun 2022 21:53:43 +0000 (14:53 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 26 Jun 2022 21:43:28 +0000 (14:43 -0700)
commit1fdf5344222da173dd7371e82d1fbacd7921f587
tree566814c030fe76c37260ca12fb7f548343017cf5
parentaa0ef3274622f077a80d6e7d6f51bc51ab4249f8
xfs: use invalidate_lock to check the state of mmap_lock

We should use invalidate_lock and XFS_MMAPLOCK_SHARED to check the state
of mmap_lock rw_semaphore in xfs_isilocked(), rather than i_rwsem and
XFS_IOLOCK_SHARED.

Fixes: 7ff7cf993754 ("xfs: Convert to use invalidate_lock")
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_inode.c