• NeilBrown's avatar
    NFS: slight optimization for walking list for delegations · f3893491
    NeilBrown authored
    There are 3 places where we walk the list of delegations
    for an nfs_client.
    In each case there are two nested loops, one for nfs_servers
    and one for nfs_delegations.
    
    When we find an interesting delegation we try to get an active
    reference to the server.  If that fails, it is pointless to
    continue to look at the other delegation for the server as
    we will never be able to get an active reference.
    So instead of continuing in the inner loop, break out
    and continue in the outer loop.
    Signed-off-by: default avatarNeilBrown <neilb@suse.com>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
    f3893491
delegation.c 30.4 KB