• Scott Mayhew's avatar
    sunrpc: Add a function to close temporary transports immediately · c3d4879e
    Scott Mayhew authored
    Add a function svc_age_temp_xprts_now() to close temporary transports
    whose xpt_local matches the address passed in server_addr immediately
    instead of waiting for them to be closed by the timer function.
    
    The function is intended to be used by notifier_blocks that will be
    added to nfsd and lockd that will run when an ip address is deleted.
    
    This will eliminate the ACK storms and client hangs that occur in
    HA-NFS configurations where nfsd & lockd is left running on the cluster
    nodes all the time and the NFS 'service' is migrated back and forth
    within a short timeframe.
    Signed-off-by: default avatarScott Mayhew <smayhew@redhat.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    c3d4879e
svc_xprt.c 37.2 KB