]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/nfs/client.c
NFSv41: Cleanup for nfs4_alloc_session.
[mv-sheeva.git] / fs / nfs / client.c
index 1df708fd42051e877206cc7723942f4dc822490e..4e7df2adb2125724a4ea9ade0fc767606d54c4b3 100644 (file)
@@ -1157,6 +1157,13 @@ static int nfs4_init_client_minor_version(struct nfs_client *clp)
                        return -ENOMEM;
 
                clp->cl_session = session;
+               /*
+                * The create session reply races with the server back
+                * channel probe. Mark the client NFS_CS_SESSION_INITING
+                * so that the client back channel can find the
+                * nfs_client struct
+                */
+               clp->cl_cons_state = NFS_CS_SESSION_INITING;
        }
 #endif /* CONFIG_NFS_V4_1 */