Commit 533210f2 authored by Li RongQing's avatar Li RongQing Committed by Trond Myklebust
Browse files

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: default avatarLi RongQing <lirongqing@baidu.com>
Link: https://lore.kernel.org/r/20250731081038.3478-1-lirongqing@baidu.com


Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 99765233
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment