HomeFreeBSD

nfsd: Make modifying vfs.nfsd.enable_locallocks safe

Description

nfsd: Make modifying vfs.nfsd.enable_locallocks safe

Commit dfaeeacc2cc2 modified clientID handling so that it could be done
with only a mutex lock held when vfs.nfsd.enable_locallocks is 0.
This makes it unsafe to change the setting of vfs.nfsd.enable_locallocks
when nfsd threads are active.

This patch forces all nfsd threads to be blocked when the value
of vfs.nfsd.enable_locallocks is changed, so that it is done safely.

(cherry picked from commit 67284d32e5e0d5f015d73eeac4342974277263f5)

Details

Provenance
rmacklemAuthored on Jun 23 2024, 10:47 PM
Parents
rGe6d78780c9cc: nfsd: Allow a mutex lock for clientID handling
Branches
Unknown
Tags
Unknown