]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/nfs/client.c
NFS: Add a flag to tell nfs_client to set RPC_CLNT_CREATE_NOPING
[linux.git] / fs / nfs / client.c
index 30838304a0bf2393c214f822c868df07d4945490..fa7d92328c72f74d0c0abc5f252f12e952a64dba 100644 (file)
@@ -515,6 +515,8 @@ int nfs_create_rpc_client(struct nfs_client *clp,
                args.flags |= RPC_CLNT_CREATE_NONPRIVPORT;
        if (test_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags))
                args.flags |= RPC_CLNT_CREATE_INFINITE_SLOTS;
+       if (test_bit(NFS_CS_NOPING, &clp->cl_flags))
+               args.flags |= RPC_CLNT_CREATE_NOPING;
 
        if (!IS_ERR(clp->cl_rpcclient))
                return 0;