• Marc Dionne's avatar
    afs: Fix afs_find_server search loop · f9c1bba3
    Marc Dionne authored
    The code that looks up servers by addresses makes the assumption
    that the list of addresses for a server is sorted.  It exits the
    loop if it finds that the target address is larger than the
    current candidate.  As the list is not currently sorted, this
    can lead to a failure to find a matching server, which can cause
    callbacks from that server to be ignored.
    
    Remove the early exit case so that the complete list is searched.
    
    Fixes: d2ddc776 ("afs: Overhaul volume and server record caching and fileserver rotation")
    Signed-off-by: default avatarMarc Dionne <marc.dionne@auristor.com>
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    f9c1bba3
server.c 16.6 KB