SUNRPC: Add a field to track the number of kernel users of an rpc_pipe

This allows us to correctly deduce when we need to remove the pipe.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust
2007-06-08 14:14:53 -04:00
parent 62e1761cef
commit 03a1256f06
2 changed files with 9 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ struct rpc_inode {
int pipelen;
int nreaders;
int nwriters;
int nkern_readwriters;
wait_queue_head_t waitq;
#define RPC_PIPE_WAIT_FOR_OPEN 1
int flags;