Skip to content
Commit d057cfec authored by NeilBrown's avatar NeilBrown Committed by Chuck Lever
Browse files

NFSD: simplify locking for network notifier.



nfsd currently maintains an open-coded read/write semaphore (refcount
and wait queue) for each network namespace to ensure the nfs service
isn't shut down while the notifier is running.

This is excessive.  As there is unlikely to be contention between
notifiers and they run without sleeping, a single spinlock is sufficient
to avoid problems.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
[ cel: ensure nfsd_notifier_lock is static ]
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 3ebdbe52
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment