aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/openmp
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2024-09-30 22:49:57 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2024-09-30 22:49:57 +0000
commiteb345e05ac6602eeef0c33fce9025bbc8ec44d0f (patch)
treeb637e5bd2a4ec84a05d7f164b39c27a161910157 /contrib/llvm-project/openmp
parentc4564a47c1ad9ef4c93c2ea415f7dfb771741a99 (diff)
downloadsrc-main.tar.gz
src-main.zip
nfsd: Fix close handling when vfs.nfsd.enable_locallocks=1HEADmain
nfsrv_freeopen() was being called after the mutex lock was released, making it possible for other kernel threads to change the lists while nfsrv_freeopen() took the nfsstateid out of the lists. This patch moves the code around "if (nfsrv_freeopen(stp, vp, 1 p) == 0) {" into nfsrv_freeopen(), so that it can remove the nfsstateid structure from all lists before unlocking the mutex. This should avoid any race between CLOSE and other nfsd threads updating the NFSv4 state. The patch does not affect semantics when vfs.nfsd.enable_locallocks=0. PR: 280978 Tested by: Matthew L. Dailey <matthew.l.dailey@dartmouth.edu> MFC after: 1 week
Diffstat (limited to 'contrib/llvm-project/openmp')
0 files changed, 0 insertions, 0 deletions