From: Andy Adamson Date: Wed, 8 May 2013 20:21:18 +0000 (-0400) Subject: NFS4.1 Fix data server connection race X-Git-Tag: v3.10-rc1~33^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c23266d532b4de796a346f57a66587c5db17d27e;p=pandora-kernel.git NFS4.1 Fix data server connection race 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: Andy Adamson Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed