summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2005-10-18 23:19:40 -0700
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-10-18 23:19:40 -0700
commit747c5534c9a6da4aa87e7cdc2209ea98ea27f381 (patch)
tree26b2343b7c941a4fa148f85df844557153971cd9 /net/sunrpc
parent7f709a48fa798cfa0f2f777c8752e12995054f78 (diff)
downloadop-kernel-dev-747c5534c9a6da4aa87e7cdc2209ea98ea27f381.zip
op-kernel-dev-747c5534c9a6da4aa87e7cdc2209ea98ea27f381.tar.gz
RPC: stops the release_pipe() funtion from being called twice
This patch stops the release_pipe() funtion from being called twice by invalidating the ops pointer in the rpc_inode when rpc_pipe_release() is called. Signed-off-by: Steve Dickson <steved@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/rpc_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index ded6c63..649d609 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -177,6 +177,8 @@ rpc_pipe_release(struct inode *inode, struct file *filp)
__rpc_purge_upcall(inode, -EPIPE);
if (rpci->ops->release_pipe)
rpci->ops->release_pipe(inode);
+ if (!rpci->nreaders && !rpci->nwriters)
+ rpci->ops = NULL;
out:
up(&inode->i_sem);
return 0;
OpenPOWER on IntegriCloud