diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-10-21 19:42:58 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-10-21 19:42:58 +0200 |
commit | ab27642b59b68d18df5a9aa5fa81b5ab5735aa77 (patch) | |
tree | afc2f191ef73e6eb1064de6358f44177d691aab0 /net/sunrpc/rpc_pipe.c | |
parent | Merge branch 'master' of ssh://rsync.linux-nfs.org/home/trondmy/www_sites/rsy... (diff) | |
parent | Merge /home/trondmy/scm/kernel/git/torvalds/linux-2.6 (diff) | |
download | linux-ab27642b59b68d18df5a9aa5fa81b5ab5735aa77.tar.xz linux-ab27642b59b68d18df5a9aa5fa81b5ab5735aa77.zip |
Merge branch 'master' of ssh://rsync.linux-nfs.org/home/trondmy/www_sites/rsync.linux-nfs.org/pub/linux/nfs-2.6
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index ded6c63f11ec..649d609e7d94 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; |