• J. Bruce Fields's avatar
    nfsd4: delay session removal till free_client · 792c95dd
    J. Bruce Fields authored
    Have unhash_client_locked() remove client and associated sessions from
    global hashes, but delay further dismantling till free_client().
    
    (After unhash_client_locked(), the only remaining references outside the
    destroying thread are from any connections which have xpt_user callbacks
    registered.)
    
    This will simplify locking on session destruction.
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    792c95dd
nfs4state.c 114 KB