diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-12-11 09:16:26 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-12-11 09:16:26 -0500 |
commit | 7ce0171d4f78992184faed87ea897d730b972965 (patch) | |
tree | 71dba7444672eb10244566e6f0ed7829f1e3abf5 /net/sunrpc/rpc_pipe.c | |
parent | 1fa8064429d0acbf5bbf3c8a53f65679fdacc75e (diff) | |
parent | 81d9bce5309288086b58b4d97a644e495fef75f2 (diff) |
Merge branch 'bugfixes' into nfs-for-next
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 3128a1503d8e..fd10981ea792 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -1152,14 +1152,19 @@ static void rpc_kill_sb(struct super_block *sb) | |||
1152 | struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); | 1152 | struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); |
1153 | 1153 | ||
1154 | mutex_lock(&sn->pipefs_sb_lock); | 1154 | mutex_lock(&sn->pipefs_sb_lock); |
1155 | if (sn->pipefs_sb != sb) { | ||
1156 | mutex_unlock(&sn->pipefs_sb_lock); | ||
1157 | goto out; | ||
1158 | } | ||
1155 | sn->pipefs_sb = NULL; | 1159 | sn->pipefs_sb = NULL; |
1156 | mutex_unlock(&sn->pipefs_sb_lock); | 1160 | mutex_unlock(&sn->pipefs_sb_lock); |
1157 | put_net(net); | ||
1158 | dprintk("RPC: sending pipefs UMOUNT notification for net %p%s\n", | 1161 | dprintk("RPC: sending pipefs UMOUNT notification for net %p%s\n", |
1159 | net, NET_NAME(net)); | 1162 | net, NET_NAME(net)); |
1160 | blocking_notifier_call_chain(&rpc_pipefs_notifier_list, | 1163 | blocking_notifier_call_chain(&rpc_pipefs_notifier_list, |
1161 | RPC_PIPEFS_UMOUNT, | 1164 | RPC_PIPEFS_UMOUNT, |
1162 | sb); | 1165 | sb); |
1166 | put_net(net); | ||
1167 | out: | ||
1163 | kill_litter_super(sb); | 1168 | kill_litter_super(sb); |
1164 | } | 1169 | } |
1165 | 1170 | ||