path: root/net
diff options
authorLinus Torvalds <torvalds@linux-foundation.org>2012-04-25 21:38:44 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-04-25 21:38:44 -0700
commit2300fd67b4f29eec19addb15a8571837228f63fc (patch)
tree5f2cfcc87f81ff9fa607ab45c1f0a9adf644cc76 /net
parent86ec090e58fca1025676e775093a87ab699f7f4d (diff)
parent7bf97bc27308cfdc7a8dadd40ae50f7c4cb09b01 (diff)
Merge tag 'nfs-for-3.4-3' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Pull NFS client bugfixes from Trond Myklebust: - Fix NFSv4 infinite loops on open(O_TRUNC) - Fix an Oops and an infinite loop in the NFSv4 flock code - Don't register the PipeFS filesystem until it has been set up - Fix an Oops in nfs_try_to_update_request - Don't reuse NFSv4 open owners: fixes a bad sequence id storm. * tag 'nfs-for-3.4-3' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: NFSv4: Keep dropped state owners on the LRU list for a while NFSv4: Ensure that we don't drop a state owner more than once NFSv4: Ensure we do not reuse open owner names nfs: Enclose hostname in brackets when needed in nfs_do_root_mount NFS: put open context on error in nfs_flush_multi NFS: put open context on error in nfs_pagein_multi NFSv4: Fix open(O_TRUNC) and ftruncate() error handling NFSv4: Ensure that we check lock exclusive/shared type against open modes NFSv4: Ensure that the LOCK code sets exception->inode NFS: check for req==NULL in nfs_try_to_update_request cleanup SUNRPC: register PipeFS file system after pernet sybsystem
Diffstat (limited to 'net')
1 files changed, 9 insertions, 8 deletions
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c
index 8adfc88e793a..3d6498af9adc 100644
--- a/net/sunrpc/sunrpc_syms.c
+++ b/net/sunrpc/sunrpc_syms.c
@@ -75,20 +75,21 @@ static struct pernet_operations sunrpc_net_ops = {
static int __init
- int err = register_rpc_pipefs();
+ int err = rpc_init_mempool();
if (err)
goto out;
- err = rpc_init_mempool();
- if (err)
- goto out2;
err = rpcauth_init_module();
if (err)
- goto out3;
+ goto out2;
err = register_pernet_subsys(&sunrpc_net_ops);
if (err)
+ goto out3;
+ err = register_rpc_pipefs();
+ if (err)
goto out4;
#ifdef RPC_DEBUG
@@ -98,11 +99,11 @@ init_sunrpc(void)
return 0;
- rpcauth_remove_module();
+ unregister_pernet_subsys(&sunrpc_net_ops);
- rpc_destroy_mempool();
+ rpcauth_remove_module();
- unregister_rpc_pipefs();
+ rpc_destroy_mempool();
return err;