]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nfs/localio: use read_seqbegin() rather than read_seqbegin_or_lock()
authorLi RongQing <lirongqing@baidu.com>
Thu, 31 Jul 2025 08:10:38 +0000 (16:10 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 3 Aug 2025 19:45:47 +0000 (12:45 -0700)
commit533210f23936a482010016ac3f57995046c58565
tree6b4e44411c18df0874119993faa7dc1cc7d45439
parent99765233ab42bf7a4950377ad7894dce8a5c0e60
nfs/localio: use read_seqbegin() rather than read_seqbegin_or_lock()

The usage of read_seqbegin_or_lock() in nfs_copy_boot_verifier()
is wrong. "seq" is always even and thus "or_lock" has no effect.

nfs_copy_boot_verifier() just copies 8 bytes and is supposed to be
very rare operation, so we do not need the adaptive locking in this case.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Link: https://lore.kernel.org/r/20250731081038.3478-1-lirongqing@baidu.com
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/localio.c