• NeilBrown's avatar
    NFSD: simplify locking for network notifier. · d057cfec
    NeilBrown authored
    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>
    d057cfec
netns.h 5.41 KB