OrangePi_CM5/include/linux/sunrpc
Stanislav Kinsbursky 591ad7feae SUNRPC: move waitq from RPC pipe to RPC inode
Currently, wait queue, used for polling of RPC pipe changes from user-space,
is a part of RPC pipe. But the pipe data itself can be released on NFS umount
prior to dentry-inode pair, connected to it (is case of this pair is open by
some process).
This is not a problem for almost all pipe users, because all PipeFS file
operations checks pipe reference prior to using it.
Except evenfd. This thing registers itself with "poll" file operation and thus
has a reference to pipe wait queue. This leads to oopses on destroying eventfd
after NFS umount (like rpc_idmapd do) since not pipe data left to the point
already.
The solution is to wait queue from pipe data to internal RPC inode data. This
looks more logical, because this wiat queue used only for user-space processes,
which already holds inode reference.

Note: upcalls have to get pipe->dentry prior to dereferecing wait queue to make
sure, that mount point won't disappear from underneath us.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2012-02-27 13:37:48 -05:00
..
Kbuild
auth.h SUNRPC: subscribe RPC clients to pipefs notifications 2012-01-31 18:20:25 -05:00
auth_gss.h SUNRPC: Clean up the RPCSEC_GSS service ticket requests 2012-01-05 10:42:38 -05:00
bc_xprt.h
cache.h SUNRPC: generic cache register routines removed 2012-01-31 19:28:16 -05:00
clnt.h SUNRPC: constify the rpc_program 2012-01-31 19:28:20 -05:00
debug.h SUNRPC: Use KERN_DEFAULT for debugging printk's 2012-02-16 14:55:30 -05:00
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
gss_krb5_enctypes.h
metrics.h NFS: include filelayout DS rpc stats in mountstats 2012-02-17 13:39:47 -05:00
msg_prot.h
rpc_pipe_fs.h SUNRPC: move waitq from RPC pipe to RPC inode 2012-02-27 13:37:48 -05:00
rpc_rdma.h
sched.h NFS: include filelayout DS rpc stats in mountstats 2012-02-17 13:39:47 -05:00
stats.h SUNRPC: constify the rpc_program 2012-01-31 19:28:20 -05:00
svc.h Lockd: per-net up and down routines introduced 2012-02-15 00:19:47 -05:00
svc_rdma.h
svc_xprt.h SUNRPC: search for service transports in network namespace context 2012-01-31 19:28:19 -05:00
svcauth.h
svcauth_gss.h SUNRPC: create GSS auth cache per network namespace 2012-01-31 19:28:15 -05:00
svcsock.h SUNRPC: service destruction in network namespace context 2012-02-15 00:19:45 -05:00
timer.h
types.h
xdr.h NFSv4: include bitmap in nfsv4 get acl data 2012-01-05 10:42:42 -05:00
xprt.h SUNRPC: add sending,pending queue and max slot to xprt stats 2012-02-16 14:55:27 -05:00
xprtrdma.h
xprtsock.h