• Andy Adamson's avatar
    NFS4.1 Fix data server connection race · c23266d5
    Andy Adamson authored
    Unlike meta data server mounts which support multiple mount points to
    the same server via struct nfs_server, data servers support a single connection.
    
    Concurrent calls to setup the data server connection can race where the first
    call allocates the nfs_client struct, and before the cache struct nfs_client
    pointer can be set, a second call also tries to setup the connection, finds the
    already allocated nfs_client, bumps the reference count, re-initializes the
    session,etc. This results in a hanging data server session after umount.
    Signed-off-by: default avatarAndy Adamson <andros@netapp.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    c23266d5
nfs4filelayoutdev.c 20.6 KB