]> 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)
commitb3a4675639e3d6b24fc805ebe1dd35ad7bb7c27e
tree566814c030fe76c37260ca12fb7f548343017cf5
parent6ffbf1b80b9c0c9b4bd5146629d4235fa1710212
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: 6be1a42230c4 ("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