• Chuck Lever's avatar
    NFS: Refactor nfs_get_client(): initialize nfs_client · 8cab4c39
    Chuck Lever authored
    Clean up: Continue to rationalize the locking in nfs_get_client() by
    moving the logic that handles the case where a matching server IP
    address is not found.
    
    When we support server trunking detection, client initialization may
    return a different nfs_client struct than was passed to it.  Change
    the synopsis of the init_client methods to return an nfs_client.
    
    The client initialization logic in nfs_get_client() is not much more
    than a wrapper around ->init_client.  It's simpler to keep the little
    bits of error handling in the version-specific init_client methods.
    
    No behavior change is expected.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    8cab4c39
internal.h 14.9 KB