• Jeff Layton's avatar
    nfsd: add nfsd4_client_tracking_ops struct and a way to set it · 2a4317c5
    Jeff Layton authored
    Abstract out the mechanism that we use to track clients into a set of
    client name tracking functions.
    
    This gives us a mechanism to plug in a new set of client tracking
    functions without disturbing the callers. It also gives us a way to
    decide on what tracking scheme to use at runtime.
    
    For now, this just looks like pointless abstraction, but later we'll
    add a new alternate scheme for tracking clients on stable storage.
    
    Note too that this patch anticipates the eventual containerization
    of this code by passing in struct net pointers in places. No attempt
    is made to containerize the legacy client tracker however.
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    2a4317c5
nfs4recover.c 12.3 KB